Class AttributeReleaseConsentFunction
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.AttributeReleaseConsentFunction
-
- All Implemented Interfaces:
Function<org.opensaml.profile.context.ProfileRequestContext,Map<String,net.shibboleth.idp.consent.Consent>>
public class AttributeReleaseConsentFunction extends Object implements Function<org.opensaml.profile.context.ProfileRequestContext,Map<String,net.shibboleth.idp.consent.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
Fields Modifier and Type Field Description private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.AttributeReleaseContext>attributeReleaseContextLookupStrategyStrategy used to find theAttributeReleaseContextfrom theProfileRequestContext.private Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String>attributeValuesHashFunctionFunction used to compute the hash of an attribute's values.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext>consentContextLookupStrategyStrategy used to find theConsentContextfrom theProfileRequestContext.private Function<org.opensaml.profile.context.ProfileRequestContext,ConsentFlowDescriptor>consentFlowDescriptorLookupStrategyConsent flow descriptor lookup strategy.
-
Constructor Summary
Constructors Constructor Description AttributeReleaseConsentFunction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,net.shibboleth.idp.consent.Consent>apply(org.opensaml.profile.context.ProfileRequestContext input)voidsetAttributeReleaseContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.AttributeReleaseContext> strategy)Set the attribute release context lookup strategy.voidsetAttributeValuesHashFunction(Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String> function)Set the function used to compute the hash of an attribute's values.voidsetConsentContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> strategy)Set the consent context lookup strategy.voidsetConsentFlowDescriptorLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,ConsentFlowDescriptor> strategy)Set the consent flow descriptor lookup strategy.
-
-
-
Field Detail
-
consentContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> consentContextLookupStrategy
Strategy used to find theConsentContextfrom theProfileRequestContext.
-
consentFlowDescriptorLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,ConsentFlowDescriptor> consentFlowDescriptorLookupStrategy
Consent flow descriptor lookup strategy.
-
attributeReleaseContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.AttributeReleaseContext> attributeReleaseContextLookupStrategy
Strategy used to find theAttributeReleaseContextfrom theProfileRequestContext.
-
attributeValuesHashFunction
@Nonnull private Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String> attributeValuesHashFunction
Function used to compute the hash of an attribute's values.
-
-
Method Detail
-
setConsentContextLookupStrategy
public void setConsentContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> strategy)Set the consent context lookup strategy.- Parameters:
strategy- the consent context lookup strategy
-
setConsentFlowDescriptorLookupStrategy
public void setConsentFlowDescriptorLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,ConsentFlowDescriptor> strategy)Set the consent flow descriptor lookup strategy.- Parameters:
strategy- the consent flow descriptor lookup strategy
-
setAttributeReleaseContextLookupStrategy
public void setAttributeReleaseContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.AttributeReleaseContext> strategy)Set the attribute release context lookup strategy.- Parameters:
strategy- the attribute release context lookup strategy
-
setAttributeValuesHashFunction
public void setAttributeValuesHashFunction(@Nonnull Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String> function)Set the function used to compute the hash of an attribute's values.- Parameters:
function- the function used to compute the hash of an attribute's values
-
-