Class ProfileInterceptorFlowDescriptor
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.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 StringPrefix convention for flow IDs.private StorageServiceStorage service for the results generated by this flow.private booleanWhether this flow supports non-browser clients. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the storage service.inthashCode()booleanGet whether this flow supports non-browser clients.voidsetActivationCondition(Predicate<ProfileRequestContext> condition) Set the activation condition in the form of aPredicatesuch that iff the condition evaluates to true should the corresponding flow be allowed/possible.voidsetNonBrowserSupported(boolean isSupported) Set whether this flow supports non-browser clients.voidsetStorageService(StorageService service) Set the storage service.booleantest(ProfileRequestContext input) toString()Methods 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
-
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 aPredicatesuch 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:
testin interfacePredicate<ProfileRequestContext>
-
hashCode
public int hashCode() -
equals
-
toString
-