Class LocalJOSEObjectCredentialResolverTest


  • public class LocalJOSEObjectCredentialResolverTest
    extends Object
    Tests for LocalJOSEObjectCredentialResolver.
    • Field Detail

      • resolver

        private net.shibboleth.oidc.security.credential.impl.LocalJOSEObjectCredentialResolver resolver
      • localRSAKey

        private com.nimbusds.jose.jwk.RSAKey localRSAKey
        The key resolved from the local credentials source.
    • Constructor Detail

      • LocalJOSEObjectCredentialResolverTest

        public LocalJOSEObjectCredentialResolverTest()
    • Method Detail

      • createdSignedJWT

        private com.nimbusds.jwt.SignedJWT createdSignedJWT()
                                                     throws com.nimbusds.jose.KeyLengthException,
                                                            com.nimbusds.jose.JOSEException
        Throws:
        com.nimbusds.jose.KeyLengthException
        com.nimbusds.jose.JOSEException
      • createClaims

        private com.nimbusds.jwt.JWTClaimsSet createClaims()
      • testSuccessful_PublicKeyInJOSEHeaderMatchesLocal

        public void testSuccessful_PublicKeyInJOSEHeaderMatchesLocal()
                                                              throws Exception
        Throws:
        Exception
      • testUnsuccessful_PublicKeyInJOSEHeaderDoesNotMatchLocal

        public void testUnsuccessful_PublicKeyInJOSEHeaderDoesNotMatchLocal()
                                                                     throws Exception
        Throws:
        Exception
      • testSuccessful_KeyIDInJOSEHeader

        public void testSuccessful_KeyIDInJOSEHeader()
                                              throws Exception
        Throws:
        Exception
      • testSuccessful_NoKeyIDInJOSEHeader

        public void testSuccessful_NoKeyIDInJOSEHeader()
                                                throws Exception
        Throws:
        Exception
      • testUnSuccessful_KeyIDInJOSEHeaderDifferentThanLocalCred

        public void testUnSuccessful_KeyIDInJOSEHeaderDifferentThanLocalCred()
                                                                      throws Exception
        Throws:
        Exception
      • testSuccessful_KeyIDInJOSEHeader_And_JWK

        public void testSuccessful_KeyIDInJOSEHeader_And_JWK()
                                                      throws Exception
        Throws:
        Exception
      • testUnsuccessful_KeyIDInJOSEHeader_And_JWK_KidDoesNotMatch

        public void testUnsuccessful_KeyIDInJOSEHeader_And_JWK_KidDoesNotMatch()
                                                                        throws Exception
        Throws:
        Exception