Class SelfEncryptionConfigurationLookupFunction
- java.lang.Object
-
- net.shibboleth.idp.profile.config.navigate.SelfEncryptionConfigurationLookupFunction
-
- All Implemented Interfaces:
Function<org.opensaml.profile.context.ProfileRequestContext,List<org.opensaml.xmlsec.EncryptionConfiguration>>
public class SelfEncryptionConfigurationLookupFunction extends Object implements Function<org.opensaml.profile.context.ProfileRequestContext,List<org.opensaml.xmlsec.EncryptionConfiguration>>
A function that returns aEncryptionConfigurationlist intended for self-encryption cases.A self-specific
EncryptionConfigurationmay be supplied. This, if present will be composed with the global configSecurityConfigurationSupport.getGlobalEncryptionConfiguration()
-
-
Field Summary
Fields Modifier and Type Field Description private booleanincludeProfileDefaultConfigurationFlag indicating whether the profile default configuration should be included in the returned list.private RelyingPartyConfigurationResolverrpResolverA resolver for default security configurations.private org.opensaml.xmlsec.EncryptionConfigurationselfConfigThe self-encryption configuration.
-
Constructor Summary
Constructors Constructor Description SelfEncryptionConfigurationLookupFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.opensaml.xmlsec.EncryptionConfiguration>apply(org.opensaml.profile.context.ProfileRequestContext input)voidsetIncludeProfileDefaultConfiguration(boolean flag)Set the flag indicating whether the profile default configuration should be included in the returned list.voidsetRelyingPartyConfigurationResolver(RelyingPartyConfigurationResolver resolver)Set the resolver for default security configurations.voidsetSelfConfiguration(org.opensaml.xmlsec.EncryptionConfiguration config)Set the self-encryption configuration.
-
-
-
Field Detail
-
selfConfig
@Nullable private org.opensaml.xmlsec.EncryptionConfiguration selfConfig
The self-encryption configuration.
-
rpResolver
@Nullable private RelyingPartyConfigurationResolver rpResolver
A resolver for default security configurations.
-
includeProfileDefaultConfiguration
private boolean includeProfileDefaultConfiguration
Flag indicating whether the profile default configuration should be included in the returned list.
-
-
Method Detail
-
setRelyingPartyConfigurationResolver
public void setRelyingPartyConfigurationResolver(@Nullable RelyingPartyConfigurationResolver resolver)Set the resolver for default security configurations.- Parameters:
resolver- the resolver to use
-
setSelfConfiguration
public void setSelfConfiguration(@Nullable org.opensaml.xmlsec.EncryptionConfiguration config)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
-
-