Package net.shibboleth.idp.authn.impl
Class SimpleSubjectCanonicalization
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.SimpleSubjectCanonicalization
- All Implemented Interfaces:
Function<SubjectCanonicalizationContext,,String> Predicate<ProfileRequestContext>,SubjectCanonicalizer,FlowDescriptor,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
A
SubjectCanonicalizer that transforms the input Subject
into a principal name by searching for one and only one UsernamePrincipal custom principal.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoApply(SubjectCanonicalizationContext c14nContext) Performs c14n if possible.private UsernamePrincipalgetUsernamePrincipal(SubjectCanonicalizationContext c14nContext) Helper method that returns the first and onlyUsernamePrincipal, returning null otherwise.Methods inherited from class net.shibboleth.idp.authn.AbstractSubjectCanonicalizer
apply, applyTransforms, doInitialize, 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
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
SimpleSubjectCanonicalization
public SimpleSubjectCanonicalization()
-
-
Method Details
-
doApply
Performs c14n if possible.- Specified by:
doApplyin classAbstractSubjectCanonicalizer- Parameters:
c14nContext- the current subject canonicalization context- Returns:
- event indicating result of function
-
getUsernamePrincipal
@Nullable private UsernamePrincipal getUsernamePrincipal(@Nonnull SubjectCanonicalizationContext c14nContext) Helper method that returns the first and onlyUsernamePrincipal, returning null otherwise.- Parameters:
c14nContext- input context- Returns:
- the only matching principal or null
-