Class AttributeReleaseConsentFunction
java.lang.Object
net.shibboleth.idp.consent.logic.impl.AttributeReleaseConsentFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,
Map<String, Consent>>
public class AttributeReleaseConsentFunction
extends Object
implements Function<ProfileRequestContext,Map<String,Consent>>
Function that returns a map of consent objects representing consent to attribute release. Each consent object
represents consent to an attribute. The id of each consent object is an attribute id, and the value of each consent
object is a hash of the attribute's values. A consent object is created for every consentable attribute in the
attribute release context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to find theAttributeReleaseContext
from theProfileRequestContext
.private Function<ProfileRequestContext,
ConsentContext> Strategy used to find theConsentContext
from theProfileRequestContext
.Consent flow descriptor lookup strategy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(ProfileRequestContext input) void
setAttributeReleaseContextLookupStrategy
(Function<ProfileRequestContext, AttributeReleaseContext> strategy) Set the attribute release context lookup strategy.void
Set the consent context lookup strategy.void
setConsentFlowDescriptorLookupStrategy
(Function<ProfileRequestContext, ConsentFlowDescriptor> strategy) Set the consent flow descriptor lookup strategy.
-
Field Details
-
consentContextLookupStrategy
Strategy used to find theConsentContext
from theProfileRequestContext
. -
consentFlowDescriptorLookupStrategy
@Nonnull private Function<ProfileRequestContext,ConsentFlowDescriptor> consentFlowDescriptorLookupStrategyConsent flow descriptor lookup strategy. -
attributeReleaseContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,AttributeReleaseContext> attributeReleaseContextLookupStrategyStrategy used to find theAttributeReleaseContext
from theProfileRequestContext
.
-
-
Constructor Details
-
AttributeReleaseConsentFunction
public AttributeReleaseConsentFunction()Constructor.
-
-
Method Details
-
setConsentContextLookupStrategy
public void setConsentContextLookupStrategy(@Nonnull Function<ProfileRequestContext, ConsentContext> strategy) Set the consent context lookup strategy.- Parameters:
strategy
- the consent context lookup strategy
-
setConsentFlowDescriptorLookupStrategy
public void setConsentFlowDescriptorLookupStrategy(@Nonnull Function<ProfileRequestContext, ConsentFlowDescriptor> strategy) Set the consent flow descriptor lookup strategy.- Parameters:
strategy
- the consent flow descriptor lookup strategy
-
setAttributeReleaseContextLookupStrategy
public void setAttributeReleaseContextLookupStrategy(@Nonnull Function<ProfileRequestContext, AttributeReleaseContext> strategy) Set the attribute release context lookup strategy.- Parameters:
strategy
- the attribute release context lookup strategy
-
apply
-