Class SelfEncryptionConfigurationLookupFunction
java.lang.Object
net.shibboleth.idp.profile.config.navigate.SelfEncryptionConfigurationLookupFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,List<EncryptionConfiguration>>
public class SelfEncryptionConfigurationLookupFunction
extends Object
implements Function<ProfileRequestContext,List<EncryptionConfiguration>>
A function that returns a
EncryptionConfiguration list intended for self-encryption cases.
A self-specific EncryptionConfiguration may be supplied. This, if present will be composed
with the global config SecurityConfigurationSupport.getGlobalEncryptionConfiguration()
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag indicating whether the profile default configuration should be included in the returned list.A resolver for default security configurations.private EncryptionConfigurationThe self-encryption configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) voidsetIncludeProfileDefaultConfiguration(boolean flag) Set the flag indicating whether the profile default configuration should be included in the returned list.voidSet the resolver for default security configurations.voidSet the self-encryption configuration.
-
Field Details
-
selfConfig
The self-encryption configuration. -
rpResolver
A resolver for default security configurations. -
includeProfileDefaultConfiguration
private boolean includeProfileDefaultConfigurationFlag indicating whether the profile default configuration should be included in the returned list.
-
-
Constructor Details
-
SelfEncryptionConfigurationLookupFunction
public SelfEncryptionConfigurationLookupFunction()
-
-
Method Details
-
setRelyingPartyConfigurationResolver
public void setRelyingPartyConfigurationResolver(@Nullable RelyingPartyConfigurationResolver resolver) Set the resolver for default security configurations.- Parameters:
resolver- the resolver to use
-
setSelfConfiguration
Set the self-encryption configuration.- Parameters:
config- the self-encryptionEncryptionConfiguration
-
setIncludeProfileDefaultConfiguration
public void setIncludeProfileDefaultConfiguration(boolean flag) Set the flag indicating whether the profile default configuration should be included in the returned list.- Parameters:
flag- true if profile default should be included, false otherwise
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,List<EncryptionConfiguration>>
-