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
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
Fields Modifier and Type Field Description private Predicate<ProfileRequestContext>activationConditionPredicate that must be true for this flow to be usable for a given request.static StringFLOW_ID_PREFIXPrefix convention for flow IDs.private StorageServicestorageServiceStorage service for the results generated by this flow.private booleansupportsNonBrowserWhether this flow supports non-browser clients.
-
Constructor Summary
Constructors Constructor Description ProfileInterceptorFlowDescriptor()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StorageServicegetStorageService()Get the storage service.inthashCode()booleanisNonBrowserSupported()Get 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)StringtoString()-
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 Detail
-
FLOW_ID_PREFIX
@Nonnull @NotEmpty public static final String FLOW_ID_PREFIX
Prefix convention for flow IDs.- See Also:
- Constant Field Values
-
activationCondition
@Nonnull private Predicate<ProfileRequestContext> activationCondition
Predicate that must be true for this flow to be usable for a given request.
-
storageService
@Nullable private StorageService storageService
Storage service for the results generated by this flow.
-
supportsNonBrowser
private boolean supportsNonBrowser
Whether this flow supports non-browser clients.
-
-
Method Detail
-
setActivationCondition
public void setActivationCondition(@Nonnull 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.- 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
@Nullable public StorageService getStorageService()
Get the storage service.- Returns:
- the storage service
-
setStorageService
public void setStorageService(@Nonnull StorageService service)Set the storage service.- Parameters:
service- the storage service
-
test
public boolean test(@Nullable ProfileRequestContext input)- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
-