Class ProfileInterceptorFlowDescriptor
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
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
,FlowDescriptor
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
ConsentFlowDescriptor
public class ProfileInterceptorFlowDescriptor
extends AbstractIdentifiableInitializableComponent
implements FlowDescriptor, Predicate<ProfileRequestContext>
A descriptor for a profile interceptor flow.
A profile interceptor flow is designed to be injected into a profile flow to facilitate customization of the profile
flow. A profile interceptor flow must include an activation predicate to indicate suitability based on the content of
the ProfileRequestContext
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>
Predicate that must be true for this flow to be usable for a given request.static final String
Prefix convention for flow IDs.private StorageService
Storage service for the results generated by this flow.private boolean
Whether this flow supports non-browser clients. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the storage service.int
hashCode()
boolean
Get whether this flow supports non-browser clients.void
setActivationCondition
(Predicate<ProfileRequestContext> condition) Set the activation condition in the form of aPredicate
such that iff the condition evaluates to true should the corresponding flow be allowed/possible.void
setNonBrowserSupported
(boolean isSupported) Set whether this flow supports non-browser clients.void
setStorageService
(StorageService service) Set the storage service.boolean
test
(ProfileRequestContext input) 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
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
FLOW_ID_PREFIX
Prefix convention for flow IDs.- See Also:
-
activationCondition
Predicate that must be true for this flow to be usable for a given request. -
storageService
Storage service for the results generated by this flow. -
supportsNonBrowser
private boolean supportsNonBrowserWhether this flow supports non-browser clients.
-
-
Constructor Details
-
ProfileInterceptorFlowDescriptor
public ProfileInterceptorFlowDescriptor()Constructor.
-
-
Method Details
-
setActivationCondition
Set the activation condition in the form of aPredicate
such that iff the condition evaluates to true should the corresponding flow be allowed/possible.- Parameters:
condition
- predicate that controls activation of the flow
-
isNonBrowserSupported
public boolean isNonBrowserSupported()Get whether this flow supports non-browser clients.- Returns:
- whether this flow supports non-browser clients
-
setNonBrowserSupported
public void setNonBrowserSupported(boolean isSupported) Set whether this flow supports non-browser clients.- Parameters:
isSupported
- whether this flow supports non-browser clients
-
getStorageService
Get the storage service.- Returns:
- the storage service
-
setStorageService
Set the storage service.- Parameters:
service
- the storage service
-
test
- Specified by:
test
in interfacePredicate<ProfileRequestContext>
-
hashCode
public int hashCode() -
equals
-
toString
-