Class ClientInformationCredentialResolverTest


  • public class ClientInformationCredentialResolverTest
    extends BaseMetadataCredentialResolverTest<net.shibboleth.oidc.security.credential.impl.ClientInformationCredentialResolver>
    Unit tests for ClientInformationCredentialResolver.
    • Field Detail

      • CLIENT_INFORMATION_REMOTE_KEYS

        private static final ClassPathResource CLIENT_INFORMATION_REMOTE_KEYS
      • CLIENT_INFORMATION_INLINE_KEYS

        private static final ClassPathResource CLIENT_INFORMATION_INLINE_KEYS
      • CLIENT_INFORMATION_SECRET

        private static final ClassPathResource CLIENT_INFORMATION_SECRET
    • Constructor Detail

      • ClientInformationCredentialResolverTest

        public ClientInformationCredentialResolverTest()
    • Method Detail

      • constructResolver

        protected net.shibboleth.oidc.security.credential.impl.ClientInformationCredentialResolver constructResolver​(RemoteJwkSetCache cache)
        Description copied from class: BaseMetadataCredentialResolverTest
        Construct the resolver to be tested.
        Specified by:
        constructResolver in class BaseMetadataCredentialResolverTest<net.shibboleth.oidc.security.credential.impl.ClientInformationCredentialResolver>
        Parameters:
        cache - the cache being used by the resolver
        Returns:
        the resolver to be tested with the given cache configured
      • testFail_IncorrectCriteria

        public void testFail_IncorrectCriteria()
                                        throws Exception
        Throws:
        Exception
      • testSuccess_Secret

        public void testSuccess_Secret()
                                throws Exception
        Throws:
        Exception
      • testSuccess_Secret_noSecretCredentialWhenAsymmetricEncryption

        public void testSuccess_Secret_noSecretCredentialWhenAsymmetricEncryption()
                                                                           throws Exception
        Throws:
        Exception
      • testSuccess_InlineJwks

        public void testSuccess_InlineJwks()
                                    throws Exception
        Throws:
        Exception
      • testSuccess_InlineJwks_ForKeyAlg

        public void testSuccess_InlineJwks_ForKeyAlg()
                                              throws Exception
        Throws:
        Exception
      • testSuccess_InlineJwks_ForKeyAlgNotFound

        public void testSuccess_InlineJwks_ForKeyAlgNotFound()
                                                      throws Exception
        Throws:
        Exception
      • testSuccess_InlineJwks_ForEncryptionAndKeyAlg

        public void testSuccess_InlineJwks_ForEncryptionAndKeyAlg()
                                                           throws Exception
        Throws:
        Exception
      • testSuccess_InlineJwks_ForSigning

        public void testSuccess_InlineJwks_ForSigning()
                                               throws Exception
        Throws:
        Exception