Class RelyingPartySigningParametersResolverTest
- java.lang.Object
-
- net.shibboleth.oidc.security.jose.impl.RelyingPartySigningParametersResolverTest
-
public class RelyingPartySigningParametersResolverTest extends Object
Tests for RelyingPartyProxySigningParametersResolver.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringCLIENT_SECRET_256A 256 bit client_secret.private DefaultOIDCAuthorizationConfigurationoidcAuthzConfigprotected ProfileRequestContextprcThe profile request context to use.private net.shibboleth.oidc.security.jose.impl.RelyingPartySigningParametersResolverresolverprivate net.shibboleth.idp.profile.context.RelyingPartyContextrpc
-
Constructor Summary
Constructors Constructor Description RelyingPartySigningParametersResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private CriteriaSetbuildCriteria(List<String> supportedSigningAlgos)private JWKCredentialcreateRSASigningCredential(com.nimbusds.jose.jwk.JWK secret)Create an AsymmetricJWK credential from the given key.voidsetup()voidtestResolveFail_AlgorithmExcluded()voidtestResolveFail_AlgorithmNotInIncludeList()voidtestResolveFail_StaticCredentials_UnsupportedMethod()voidtestResolveSuccess_ECCredentials_OPSupportsTwo()voidtestResolveSuccess_RSACredentials_OPSupportsOne()voidtestResolveSuccess_StaticCredentials()voidtestResolveSuccess_StaticCredentials_ConfigSupportsOne()voidtestResolveSuccess_StaticCredentials_OPSupportsNone()voidtestResolveSuccess_StaticCredentials_OPSupportsOne()
-
-
-
Field Detail
-
CLIENT_SECRET_256
private static final String CLIENT_SECRET_256
A 256 bit client_secret.- See Also:
- Constant Field Values
-
resolver
private net.shibboleth.oidc.security.jose.impl.RelyingPartySigningParametersResolver resolver
-
rpc
private net.shibboleth.idp.profile.context.RelyingPartyContext rpc
-
prc
protected ProfileRequestContext prc
The profile request context to use.
-
oidcAuthzConfig
private DefaultOIDCAuthorizationConfiguration oidcAuthzConfig
-
-
Method Detail
-
testResolveSuccess_StaticCredentials
public void testResolveSuccess_StaticCredentials() throws ResolverException- Throws:
ResolverException
-
testResolveFail_StaticCredentials_UnsupportedMethod
public void testResolveFail_StaticCredentials_UnsupportedMethod() throws ResolverException- Throws:
ResolverException
-
testResolveSuccess_StaticCredentials_ConfigSupportsOne
public void testResolveSuccess_StaticCredentials_ConfigSupportsOne() throws ResolverException- Throws:
ResolverException
-
testResolveSuccess_StaticCredentials_OPSupportsOne
public void testResolveSuccess_StaticCredentials_OPSupportsOne() throws ResolverException, URISyntaxException- Throws:
ResolverExceptionURISyntaxException
-
testResolveSuccess_StaticCredentials_OPSupportsNone
public void testResolveSuccess_StaticCredentials_OPSupportsNone() throws ResolverException, URISyntaxException- Throws:
ResolverExceptionURISyntaxException
-
testResolveSuccess_RSACredentials_OPSupportsOne
public void testResolveSuccess_RSACredentials_OPSupportsOne() throws Exception- Throws:
Exception
-
testResolveSuccess_ECCredentials_OPSupportsTwo
public void testResolveSuccess_ECCredentials_OPSupportsTwo() throws Exception- Throws:
Exception
-
testResolveFail_AlgorithmExcluded
public void testResolveFail_AlgorithmExcluded() throws Exception- Throws:
Exception
-
testResolveFail_AlgorithmNotInIncludeList
public void testResolveFail_AlgorithmNotInIncludeList() throws Exception- Throws:
Exception
-
buildCriteria
private CriteriaSet buildCriteria(List<String> supportedSigningAlgos)
-
createRSASigningCredential
private JWKCredential createRSASigningCredential(com.nimbusds.jose.jwk.JWK secret) throws com.nimbusds.jose.JOSEException
Create an AsymmetricJWK credential from the given key.- Parameters:
secret- the key to convert to aJWKCredential.- Returns:
- the credential
- Throws:
com.nimbusds.jose.JOSEException
-
-