Class RelyingPartyProxySigningParametersResolverTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.RelyingPartyProxySigningParametersResolverTest
-
public class RelyingPartyProxySigningParametersResolverTest extends AbstractOIDCTest
Tests for RelyingPartyProxySigningParametersResolver.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.oidc.profile.config.OIDCAuthorizationConfigurationoidcAuthzConfigprivate net.shibboleth.idp.plugin.authn.oidc.rp.impl.RelyingPartyProxySigningParametersResolverresolverprivate net.shibboleth.idp.profile.context.RelyingPartyContextrpc-
Fields inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
ac, ACCESS_TOKEN_RESPONSE, authnRequest, CLIENT_METADATA, GOOD_PROVIDER_CONFIGURATION_INFO, partyConfig, peerEntityCtx, prc, providerCtx, rootPrc, src, USERINFO_RESPONSE, USERINFO_RESPONSE_JWE, USERINFO_RESPONSE_JWS
-
-
Constructor Summary
Constructors Constructor Description RelyingPartyProxySigningParametersResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private CriteriaSetbuildCriteria(List<String> supportedSigningAlgos)private net.shibboleth.oidc.security.credential.JWKCredentialcreateRSASigningCredential(com.nimbusds.jose.jwk.JWK secret)Create an AsymmetricJWK credential from the given key.voidsetup()Setup the various contexts.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
-
resolver
private net.shibboleth.idp.plugin.authn.oidc.rp.impl.RelyingPartyProxySigningParametersResolver resolver
-
rpc
private net.shibboleth.idp.profile.context.RelyingPartyContext rpc
-
oidcAuthzConfig
private net.shibboleth.oidc.profile.config.OIDCAuthorizationConfiguration oidcAuthzConfig
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractOIDCTestSetup the various contexts.- Overrides:
setupin classAbstractOIDCTest- Throws:
Exception- on error
-
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 net.shibboleth.oidc.security.credential.JWKCredential createRSASigningCredential(com.nimbusds.jose.jwk.JWK secret) throws com.nimbusds.jose.JOSEExceptionCreate an AsymmetricJWK credential from the given key.- Parameters:
secret- the key to convert to aJWKCredential.- Returns:
- the credential
- Throws:
com.nimbusds.jose.JOSEException
-
-