Package net.shibboleth.sp.profile
Class BasicTokenConsumerFlowDescriptor
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.sp.profile.BasicTokenConsumerFlowDescriptor
- All Implemented Interfaces:
FlowDescriptor,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,TokenConsumerFlowDescriptor
public class BasicTokenConsumerFlowDescriptor
extends AbstractIdentifiableInitializableComponent
implements TokenConsumerFlowDescriptor
Basic implementation of a descriptor for a token consumer flow.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>Whether this flow supports a particular request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the activation condition to run to determine whether this flow can handle the request.inthashCode()voidsetActivationCondition(Predicate<ProfileRequestContext> condition) Set activation condition to determine whether this flow supports a request.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
-
activationCondition
Whether this flow supports a particular request.
-
-
Constructor Details
-
BasicTokenConsumerFlowDescriptor
public BasicTokenConsumerFlowDescriptor()Constructor.
-
-
Method Details
-
getActivationCondition
Gets the activation condition to run to determine whether this flow can handle the request.- Specified by:
getActivationConditionin interfaceTokenConsumerFlowDescriptor- Returns:
- a condition governing use of this flow
-
setActivationCondition
Set activation condition to determine whether this flow supports a request.Defaults to false.
- Parameters:
condition- condition to use
-
hashCode
public int hashCode() -
equals
-
toString
-