Package net.shibboleth.idp.authn
Class SubjectCanonicalizationFlowDescriptor
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.authn.SubjectCanonicalizationFlowDescriptor
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
,FlowDescriptor
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
NameIDCanonicalizationFlowDescriptor
public class SubjectCanonicalizationFlowDescriptor
extends AbstractIdentifiableInitializableComponent
implements FlowDescriptor, Predicate<ProfileRequestContext>
A descriptor for a subject canonicalization flow.
A flow models a sequence of profile actions that performs canonicalization of a Subject
into a string-form principal name. Flows can do essentially anything, including interact with the subject, but must
include an activation predicate to indicate their suitability based on the content of the
ProfileRequestContext
, particularly the required
SubjectCanonicalizationContext
child context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>
Predicate that must be true for this flow to be usable for a given request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
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.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
-
activationCondition
Predicate that must be true for this flow to be usable for a given request.
-
-
Constructor Details
-
SubjectCanonicalizationFlowDescriptor
public SubjectCanonicalizationFlowDescriptor()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
-
test
- Specified by:
test
in interfacePredicate<ProfileRequestContext>
-
hashCode
public int hashCode() -
equals
-
toString
-