Class AttributeReleaseFlowDescriptor
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor
-
- net.shibboleth.idp.consent.flow.impl.ConsentFlowDescriptor
-
- net.shibboleth.idp.consent.flow.ar.impl.AttributeReleaseFlowDescriptor
-
- All Implemented Interfaces:
Predicate<org.opensaml.profile.context.ProfileRequestContext>,net.shibboleth.idp.profile.FlowDescriptor,net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.IdentifiableComponent,net.shibboleth.utilities.java.support.component.IdentifiedComponent,net.shibboleth.utilities.java.support.component.InitializableComponent
public class AttributeReleaseFlowDescriptor extends ConsentFlowDescriptor
Descriptor for an attribute release flow.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String>attributeValuesHashFunctionFunction to create hash of all attribute values.private booleandoNotRememberConsentAllowedWhether not remembering consent is allowed.private booleanglobalConsentAllowedWhether consent to any attribute and to any relying party is allowed.private booleanperAttributeConsentEnabledWhether per-attribute consent is enabled.
-
Constructor Summary
Constructors Constructor Description AttributeReleaseFlowDescriptor()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String>getAttributeValuesHashFunction()Get the function to create hash of all attribute values.booleanisDoNotRememberConsentAllowed()Get whether not remembering consent is allowed.booleanisGlobalConsentAllowed()Get whether consent to any attribute and to any relying party is allowed.booleanisPerAttributeConsentEnabled()Get whether per-attribute consent is enabled.voidsetAttributeValuesHashFunction(Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String> function)Set the function to create hash of all attribute values.voidsetDoNotRememberConsentAllowed(boolean flag)Set whether not remembering consent is allowed.voidsetGlobalConsentAllowed(boolean flag)Set whether consent to any attribute and to any relying party is allowed.voidsetPerAttributeConsentEnabled(boolean flag)Set whether per-attribute consent is enabled.-
Methods inherited from class net.shibboleth.idp.consent.flow.impl.ConsentFlowDescriptor
compareValues, getExpandedNumberOfStoredRecords, getExpandedStorageThreshold, getLifetime, getMaximumNumberOfStoredRecords, setCompareValues, setExpandedNumberOfStoredRecords, setExpandedStorageThreshold, setLifetime, setMaximumNumberOfStoredRecords
-
Methods inherited from class net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor
equals, getStorageService, hashCode, isNonBrowserSupported, setActivationCondition, setNonBrowserSupported, setStorageService, test, toString
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent
setId
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
-
-
-
Field Detail
-
doNotRememberConsentAllowed
private boolean doNotRememberConsentAllowed
Whether not remembering consent is allowed.
-
globalConsentAllowed
private boolean globalConsentAllowed
Whether consent to any attribute and to any relying party is allowed.
-
perAttributeConsentEnabled
private boolean perAttributeConsentEnabled
Whether per-attribute consent is enabled.
-
attributeValuesHashFunction
@Nonnull private Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String> attributeValuesHashFunction
Function to create hash of all attribute values.
-
-
Method Detail
-
isDoNotRememberConsentAllowed
public boolean isDoNotRememberConsentAllowed()
Get whether not remembering consent is allowed.- Returns:
- true if consent should not be remembered
-
isGlobalConsentAllowed
public boolean isGlobalConsentAllowed()
Get whether consent to any attribute and to any relying party is allowed.- Returns:
- true iff consent to any attribute and to any relying party is allowed
-
isPerAttributeConsentEnabled
public boolean isPerAttributeConsentEnabled()
Get whether per-attribute consent is enabled.- Returns:
- true iff per-attribute consent is enabled
-
getAttributeValuesHashFunction
@Nonnull public Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String> getAttributeValuesHashFunction()
Get the function to create hash of all attribute values.- Returns:
- function to create hash of all attribute values
-
setDoNotRememberConsentAllowed
public void setDoNotRememberConsentAllowed(boolean flag)
Set whether not remembering consent is allowed.- Parameters:
flag- true if consent should not be remembered
-
setGlobalConsentAllowed
public void setGlobalConsentAllowed(boolean flag)
Set whether consent to any attribute and to any relying party is allowed.- Parameters:
flag- true iff consent to any attribute and to any relying party is allowed
-
setPerAttributeConsentEnabled
public void setPerAttributeConsentEnabled(boolean flag)
Set whether per-attribute consent is enabled.- Parameters:
flag- true iff per-attribute consent is enabled
-
setAttributeValuesHashFunction
public void setAttributeValuesHashFunction(@Nonnull Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String> function)Set the function to create hash of all attribute values.- Parameters:
function- function to create hash of all attribute values
-
-