Package net.shibboleth.idp.authn.impl
Class FunctionSubjectCanonicalization
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.authn.SubjectCanonicalizationFlowDescriptor
net.shibboleth.idp.authn.AbstractSubjectCanonicalizer
net.shibboleth.idp.authn.impl.FunctionSubjectCanonicalization
- All Implemented Interfaces:
Function<SubjectCanonicalizationContext,,String> Predicate<ProfileRequestContext>,SubjectCanonicalizer,FlowDescriptor,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
A
SubjectCanonicalizer that delegates implementation to a function, allowing
scripted/etc. use.- Since:
- 5.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<SubjectCanonicalizationContext,String> Implementation of flow. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoApply(SubjectCanonicalizationContext c14nContext) Performs c14n if possible.protected voidvoidSet the function to use.Methods inherited from class net.shibboleth.idp.authn.AbstractSubjectCanonicalizer
apply, applyTransforms, getLogPrefix, setLowercase, setTransforms, setTrim, setUppercaseMethods inherited from class net.shibboleth.idp.authn.SubjectCanonicalizationFlowDescriptor
equals, getFlowId, hashCode, setActivationCondition, setFlowId, test, toStringMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
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
-
delegatedFunction
Implementation of flow.
-
-
Constructor Details
-
FunctionSubjectCanonicalization
public FunctionSubjectCanonicalization()
-
-
Method Details
-
setFunction
Set the function to use.- Parameters:
f- function to use
-
doInitialize
- Overrides:
doInitializein classAbstractSubjectCanonicalizer- Throws:
ComponentInitializationException
-
doApply
Performs c14n if possible.- Specified by:
doApplyin classAbstractSubjectCanonicalizer- Parameters:
c14nContext- the current subject canonicalization context- Returns:
- event indicating result of function
-