Class ProviderMetadataDataEncryptionAlgorithmsLookupStrategyTest
- java.lang.Object
-
- net.shibboleth.oidc.security.impl.ProviderMetadataDataEncryptionAlgorithmsLookupStrategyTest
-
public class ProviderMetadataDataEncryptionAlgorithmsLookupStrategyTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private AlgorithmRegistryalgorithmRegistryprivate net.shibboleth.oidc.security.jose.impl.BasicEncryptionConfigurationconfigprivate CriteriaSetcriteriaprivate static ClassPathResourceGOOD_PROVIDER_CONFIGURATION_INFOExample of good provider metadata that supports request_object_encryption.private net.shibboleth.oidc.security.jose.impl.ProviderMetadataDataEncryptionAlgorithmsLookupStrategystrategy
-
Constructor Summary
Constructors Constructor Description ProviderMetadataDataEncryptionAlgorithmsLookupStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private StringreadJsonFromFile(Resource location)Read a file into a string.voidsetup()voidtestSuccess_AllConfiguredAlgsAreSupported()voidtestSuccess_NoSupportedAlgs()voidtestSuccess_NullProviderAlgs()voidtestSuccess_SomeAlgsExluded()voidtestSuccess_SomeAlgsNotSupportedByOP()
-
-
-
Field Detail
-
strategy
private net.shibboleth.oidc.security.jose.impl.ProviderMetadataDataEncryptionAlgorithmsLookupStrategy strategy
-
config
private net.shibboleth.oidc.security.jose.impl.BasicEncryptionConfiguration config
-
criteria
private CriteriaSet criteria
-
algorithmRegistry
private AlgorithmRegistry algorithmRegistry
-
GOOD_PROVIDER_CONFIGURATION_INFO
private static final ClassPathResource GOOD_PROVIDER_CONFIGURATION_INFO
Example of good provider metadata that supports request_object_encryption.
-
-
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()
-
-