Package net.shibboleth.idp.saml.nameid
Class AbstractNameIDCanonicalizer
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.saml.nameid.NameIDCanonicalizationFlowDescriptor
net.shibboleth.idp.saml.nameid.AbstractNameIDCanonicalizer
- All Implemented Interfaces:
Function<SubjectCanonicalizationContext,,String> Predicate<ProfileRequestContext>,SubjectCanonicalizer,FlowDescriptor,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
NameIDCanonicalization,NameIdentifierCanonicalization
public abstract class AbstractNameIDCanonicalizer
extends NameIDCanonicalizationFlowDescriptor
implements SubjectCanonicalizer
Base class for "inline" implementations of SAML c14n flows.
- Since:
- 5.2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(SubjectCanonicalizationContext c14nContext) Performs this c14n action's pre-execute step.protected abstract StringdoApply(SubjectCanonicalizationContext c14nContext) Performs c14n if possible.protected voidprotected StringReturn a prefix for logging messages for this component.Methods inherited from class net.shibboleth.idp.saml.nameid.NameIDCanonicalizationFlowDescriptor
getFormats, setFormatsMethods 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
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
logPrefix
Cached log prefix.
-
-
Constructor Details
-
AbstractNameIDCanonicalizer
public AbstractNameIDCanonicalizer()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classSubjectCanonicalizationFlowDescriptor- Throws:
ComponentInitializationException
-
apply
Performs this c14n action's pre-execute step. Default implementation just returns true iff a subject is set.- Specified by:
applyin interfaceFunction<SubjectCanonicalizationContext,String> - Parameters:
c14nContext- the current subject canonicalization context- Returns:
- event indicating result of function
-
doApply
Performs c14n if possible.- Parameters:
c14nContext- the current subject canonicalization context- Returns:
- event indicating result of function
-
getLogPrefix
Return a prefix for logging messages for this component.- Returns:
- a string for insertion at the beginning of any log messages
-