Class ConsentFlowDescriptor
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor
net.shibboleth.idp.consent.flow.impl.ConsentFlowDescriptor
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,FlowDescriptor,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AttributeReleaseFlowDescriptor
Descriptor for a consent flow.
A consent flow models a sequence of actions which retrieves consent from storage as well as extracts consent from
user input.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether consent equality includes comparing consent values.private intExpanded maximum number of records stored in the storage service.private longValue size at which expanded maximum takes effect.private DurationTime to expire consent storage records.private intMaximum number of records stored in the storage service.Fields inherited from class net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor
FLOW_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether consent equality includes comparing consent values.intGet the maximum number of records to keep in the storage service if the expanded size threshold is met.longGet the storage value size at which the expanded maximum record size kicks in.Time to expire consent storage records.intGet the maximum number of records to keep in the storage service if the expanded size threshold is not met.voidsetCompareValues(boolean flag) Set whether consent equality includes comparing consent values.voidsetExpandedNumberOfStoredRecords(int maximum) Set the maximum number of records to keep in the storage service if the expanded size threshold is met.voidsetExpandedStorageThreshold(long size) Set the storage value size at which the expanded maximum record size kicks in.voidsetLifetime(Duration consentLifetime) Set time to expire consent storage records.voidsetMaximumNumberOfStoredRecords(int maximum) Set the maximum number of records to keep in the storage service if the expanded size threshold is not met.Methods inherited from class net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor
equals, getStorageService, hashCode, isNonBrowserSupported, setActivationCondition, setNonBrowserSupported, setStorageService, test, toStringMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.IdentifiableComponent
setIdMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
compareValues
private boolean compareValuesWhether consent equality includes comparing consent values. -
lifetime
Time to expire consent storage records. Default value: null/infinite. -
maxStoredRecords
private int maxStoredRecordsMaximum number of records stored in the storage service. -
expandedMaxStoredRecords
private int expandedMaxStoredRecordsExpanded maximum number of records stored in the storage service. -
expandedStorageThreshold
private long expandedStorageThresholdValue size at which expanded maximum takes effect. Default value : 1024 * 1024
-
-
Constructor Details
-
ConsentFlowDescriptor
public ConsentFlowDescriptor()Constructor.
-
-
Method Details
-
compareValues
public boolean compareValues()Whether consent equality includes comparing consent values.- Returns:
- true if consent equality includes comparing consent values
-
getLifetime
Time to expire consent storage records.- Returns:
- time to expire consent storage records, null for infinite.
-
getMaximumNumberOfStoredRecords
public int getMaximumNumberOfStoredRecords()Get the maximum number of records to keep in the storage service if the expanded size threshold is not met.- Returns:
- the maximum number of records, or <=0 for no limit
-
getExpandedNumberOfStoredRecords
public int getExpandedNumberOfStoredRecords()Get the maximum number of records to keep in the storage service if the expanded size threshold is met.- Returns:
- the maximum number of records, or <=0 for no limit
-
getExpandedStorageThreshold
public long getExpandedStorageThreshold()Get the storage value size at which the expanded maximum record size kicks in.- Returns:
- storage value size to enable expanded record maximum
-
setCompareValues
public void setCompareValues(boolean flag) Set whether consent equality includes comparing consent values.- Parameters:
flag- true if consent equality includes comparing consent values
-
setLifetime
Set time to expire consent storage records.- Parameters:
consentLifetime- time to expire consent storage records. null means infinite
-
setMaximumNumberOfStoredRecords
public void setMaximumNumberOfStoredRecords(int maximum) Set the maximum number of records to keep in the storage service if the expanded size threshold is not met.- Parameters:
maximum- the maximum number of records, or <=0 for no limit
-
setExpandedNumberOfStoredRecords
public void setExpandedNumberOfStoredRecords(int maximum) Set the maximum number of records to keep in the storage service if the expanded size threshold is met.- Parameters:
maximum- the maximum number of records, or <=0 for no limit
-
setExpandedStorageThreshold
public void setExpandedStorageThreshold(long size) Set the storage value size at which the expanded maximum record size kicks in.Defaults to 1024^2
- Parameters:
size- size threshold
-