Class DefaultKeyTransportEncryptionAlgorithmsLookupStrategy
- java.lang.Object
-
- net.shibboleth.oidc.security.impl.AbstractEncryptionAlgorithmsLookupStrategy
-
- net.shibboleth.oidc.security.jose.impl.DefaultKeyTransportEncryptionAlgorithmsLookupStrategy
-
- All Implemented Interfaces:
BiFunction<CriteriaSet,Predicate<String>,List<String>>
- Direct Known Subclasses:
ClientInformationKeyTransportEncryptionAlgorithmsLookupStrategy,ProviderMetadataKeyTransportEncryptionAlgorithmsLookupStrategy
public class DefaultKeyTransportEncryptionAlgorithmsLookupStrategy extends AbstractEncryptionAlgorithmsLookupStrategy
A BiFunction that retrieves and filters the key transport encryption algorithms from theEncryptionConfigurationinside the criteria set. Algorithms are removed (filtered) if not supported by the runtime or are explicitly excluded or not included.- Since:
- 2.2.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultKeyTransportEncryptionAlgorithmsLookupStrategy(AlgorithmRegistry registry)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>apply(CriteriaSet criteria, Predicate<String> includeExcludePredicate)protected List<String>getKeyTransportAlgorithmsFromConfiguration(CriteriaSet criteria, Predicate<String> includeExcludePredicate)Get the key transport algorithms from theEncryptionConfigurationinside the criteria set.-
Methods inherited from class net.shibboleth.oidc.security.impl.AbstractEncryptionAlgorithmsLookupStrategy
findAlgorithmIntersection, getAlgorithmRegistry, getAlgorithmRuntimeSupportedPredicate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Constructor Detail
-
DefaultKeyTransportEncryptionAlgorithmsLookupStrategy
protected DefaultKeyTransportEncryptionAlgorithmsLookupStrategy(@Nullable AlgorithmRegistry registry)Constructor.- Parameters:
registry- the algorithm registry to used when resolving algorithm URIs. Can benullto use the global registry.
-
-
Method Detail
-
apply
@Nonnull public List<String> apply(CriteriaSet criteria, Predicate<String> includeExcludePredicate)
-
getKeyTransportAlgorithmsFromConfiguration
@Nonnull protected List<String> getKeyTransportAlgorithmsFromConfiguration(CriteriaSet criteria, Predicate<String> includeExcludePredicate)
Get the key transport algorithms from theEncryptionConfigurationinside the criteria set.- Parameters:
criteria- to pull out theEncryptionConfigurationincludeExcludePredicate- the include and exclude predicates to filter the credentials with- Returns:
- the key transport algorithms from the configuration, an empty list otherwise
-
-