public class ProfileInterceptorFlowDescriptor extends AbstractIdentifiableInitializableComponent implements com.google.common.base.Predicate<ProfileRequestContext>
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.
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Predicate<ProfileRequestContext> |
activationCondition
Predicate that must be true for this flow to be usable for a given request.
|
static String |
FLOW_ID_PREFIX
Prefix convention for flow IDs.
|
private StorageService |
storageService
Storage service for the results generated by this flow.
|
private boolean |
supportsNonBrowser
Whether this flow supports non-browser clients.
|
| Constructor and Description |
|---|
ProfileInterceptorFlowDescriptor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(ProfileRequestContext input) |
boolean |
equals(Object obj) |
StorageService |
getStorageService()
Get the storage service.
|
int |
hashCode() |
boolean |
isNonBrowserSupported()
Get whether this flow supports non-browser clients.
|
void |
setActivationCondition(com.google.common.base.Predicate<ProfileRequestContext> condition)
Set the activation condition in the form of a
Predicate 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.
|
String |
toString() |
setIddoInitialize, getIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId@Nonnull @NotEmpty public static final String FLOW_ID_PREFIX
@Nonnull private com.google.common.base.Predicate<ProfileRequestContext> activationCondition
@Nullable private StorageService storageService
private boolean supportsNonBrowser
public ProfileInterceptorFlowDescriptor()
public void setActivationCondition(@Nonnull com.google.common.base.Predicate<ProfileRequestContext> condition)
Predicate such that iff the condition evaluates to true
should the corresponding flow be allowed/possible.condition - predicate that controls activation of the flowpublic boolean isNonBrowserSupported()
public void setNonBrowserSupported(boolean isSupported)
isSupported - whether this flow supports non-browser clients@Nullable public StorageService getStorageService()
public void setStorageService(@Nonnull StorageService service)
service - the storage servicepublic boolean apply(ProfileRequestContext input)
apply in interface com.google.common.base.Predicate<ProfileRequestContext>public boolean equals(Object obj)
equals in interface com.google.common.base.Predicate<ProfileRequestContext>equals in class ObjectCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.