Class RelyingPartySigningParametersResolverTest


  • public class RelyingPartySigningParametersResolverTest
    extends Object
    Tests for RelyingPartyProxySigningParametersResolver.
    • Field Detail

      • resolver

        private net.shibboleth.oidc.security.jose.impl.RelyingPartySigningParametersResolver resolver
      • rpc

        private net.shibboleth.idp.profile.context.RelyingPartyContext rpc
    • Constructor Detail

      • RelyingPartySigningParametersResolverTest

        public RelyingPartySigningParametersResolverTest()
    • 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 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