Class ClientInformationDataEncryptionAlgorithmsLookupStrategy
java.lang.Object
net.shibboleth.oidc.security.impl.AbstractEncryptionAlgorithmsLookupStrategy
net.shibboleth.oidc.security.jose.impl.DefaultDataEncryptionAlgorithmsLookupStrategy
net.shibboleth.oidc.security.jose.impl.ClientInformationDataEncryptionAlgorithmsLookupStrategy
- All Implemented Interfaces:
BiFunction<CriteriaSet,Predicate<String>, List<String>>
public class ClientInformationDataEncryptionAlgorithmsLookupStrategy
extends DefaultDataEncryptionAlgorithmsLookupStrategy
A lookup strategy that finds data/content encryption algorithms from local configuration that are compatible
with those advertised by the RP/client information.
The set of supported and configured encryption methods ('enc') are derived from the intersection of those supported by local configuration and the one configured for the RP.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<OIDCClientInformation,String> A strategy to locate the encryption method ('enc') appropriate for the JWT to be encrypted.private final org.slf4j.LoggerLogger. -
Constructor Summary
ConstructorsConstructorDescriptionClientInformationDataEncryptionAlgorithmsLookupStrategy(Function<OIDCClientInformation, String> strategy) Constructor.ClientInformationDataEncryptionAlgorithmsLookupStrategy(Function<OIDCClientInformation, String> strategy, AlgorithmRegistry registry) Constructor. -
Method Summary
Methods inherited from class net.shibboleth.oidc.security.jose.impl.DefaultDataEncryptionAlgorithmsLookupStrategy
getDataEncryptionAlgorithmsFromConfigurationMethods inherited from class net.shibboleth.oidc.security.impl.AbstractEncryptionAlgorithmsLookupStrategy
findAlgorithmIntersection, getAlgorithmRegistry, getAlgorithmRuntimeSupportedPredicateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logLogger. -
clientEncryptionMethodLookupStrategy
A strategy to locate the encryption method ('enc') appropriate for the JWT to be encrypted. Can returnnullif the metadata does not contain a value (which is means no encryption should be done).
-
-
Constructor Details
-
ClientInformationDataEncryptionAlgorithmsLookupStrategy
public ClientInformationDataEncryptionAlgorithmsLookupStrategy(@Nonnull @ParameterName(name="clientEncryptionMethodLookupStrategy") Function<OIDCClientInformation, String> strategy, @Nullable @ParameterName(name="AlgorithmRegistry") AlgorithmRegistry registry) Constructor.- Parameters:
strategy- the strategy used to locate the encryption methods ('enc') from the client metadata appropriate for the JWT to be encrypted.registry- the algorithm registry to used when resolving algorithm URIs. Can benull.
-
ClientInformationDataEncryptionAlgorithmsLookupStrategy
public ClientInformationDataEncryptionAlgorithmsLookupStrategy(@Nonnull @ParameterName(name="clientEncryptionMethodLookupStrategy") Function<OIDCClientInformation, String> strategy) Constructor.- Parameters:
strategy- the strategy used to locate the encryption methods ('enc') from the client metadata appropriate for the JWT to be encrypted.
-
-
Method Details