Class ProviderMetadataDataEncryptionAlgorithmsLookupStrategyTest


  • public class ProviderMetadataDataEncryptionAlgorithmsLookupStrategyTest
    extends Object
    • Field Detail

      • strategy

        private net.shibboleth.oidc.security.jose.impl.ProviderMetadataDataEncryptionAlgorithmsLookupStrategy strategy
      • config

        private net.shibboleth.oidc.security.jose.impl.BasicEncryptionConfiguration config
      • GOOD_PROVIDER_CONFIGURATION_INFO

        private static final ClassPathResource GOOD_PROVIDER_CONFIGURATION_INFO
        Example of good provider metadata that supports request_object_encryption.
    • Constructor Detail

      • ProviderMetadataDataEncryptionAlgorithmsLookupStrategyTest

        public ProviderMetadataDataEncryptionAlgorithmsLookupStrategyTest()
    • Method Detail

      • readJsonFromFile

        private String readJsonFromFile​(@Nonnull
                                        Resource location)
        Read a file into a string.
        Parameters:
        location - the location of the file to read
        Returns:
        the file as a string
      • setup

        @BeforeMethod
        public void setup()
                   throws com.nimbusds.oauth2.sdk.ParseException
        Throws:
        com.nimbusds.oauth2.sdk.ParseException
      • testSuccess_AllConfiguredAlgsAreSupported

        public void testSuccess_AllConfiguredAlgsAreSupported()
      • testSuccess_SomeAlgsNotSupportedByOP

        public void testSuccess_SomeAlgsNotSupportedByOP()
      • testSuccess_SomeAlgsExluded

        public void testSuccess_SomeAlgsExluded()
      • testSuccess_NoSupportedAlgs

        public void testSuccess_NoSupportedAlgs()
      • testSuccess_NullProviderAlgs

        public void testSuccess_NullProviderAlgs()