Class RelyingPartyProxySigningParametersResolverTest


  • public class RelyingPartyProxySigningParametersResolverTest
    extends AbstractOIDCTest
    Tests for RelyingPartyProxySigningParametersResolver.
    • 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
    • Constructor Detail

      • RelyingPartyProxySigningParametersResolverTest

        public RelyingPartyProxySigningParametersResolverTest()
    • Method Detail

      • 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_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
      • createRSASigningCredential

        private net.shibboleth.oidc.security.credential.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 a JWKCredential.
        Returns:
        the credential
        Throws:
        com.nimbusds.jose.JOSEException