public class NameIdentifierCanonicalization extends AbstractSubjectCanonicalizationAction
Subject
into a principal name by searching for one and only one NameIdentifierPrincipal custom principal,
using an injected NameIdentifierDecoder to carry out the process.EventIds.PROCEED_EVENT_ID, AuthnEventIds.INVALID_SUBJECTProfileRequestContext.getSubcontext(SubjectCanonicalizationContext.class, false) != null
SubjectCanonicalizationContext.getPrincipalName() != null || SubjectCanonicalizationContext.getException() != null
| Modifier and Type | Class and Description |
|---|---|
static class |
NameIdentifierCanonicalization.ActivationCondition
A predicate that determines if this action can run or not.
|
| Modifier and Type | Field and Description |
|---|---|
private NameIdentifierDecoder |
decoder
Supplies logic for decoding the
NameIdentifier into a principal. |
private NameIdentifierCanonicalization.ActivationCondition |
embeddedPredicate
Supplies logic for pre-execute test.
|
| Constructor and Description |
|---|
NameIdentifierCanonicalization()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
SubjectCanonicalizationContext c14nContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
SubjectCanonicalizationContext c14nContext) |
NameIdentifierDecoder |
getDecoder()
Get the class responsible for decoding the
NameIdentifier into a principal. |
void |
setDecoder(NameIdentifierDecoder theDecoder)
Set the class responsible for decoding the
NameIdentifier into a principal. |
applyTransforms, doExecute, doPreExecute, setLookupStrategy, setLowercase, setTransforms, setTrim, setUppercasedoExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final NameIdentifierCanonicalization.ActivationCondition embeddedPredicate
@NonnullAfterInit private NameIdentifierDecoder decoder
NameIdentifier into a principal.public NameIdentifierCanonicalization()
@NonnullAfterInit public NameIdentifierDecoder getDecoder()
NameIdentifier into a principal.public void setDecoder(@Nonnull NameIdentifierDecoder theDecoder)
NameIdentifier into a principal.theDecoder - the decoderprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull SubjectCanonicalizationContext c14nContext)
doPreExecute in class AbstractSubjectCanonicalizationActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull SubjectCanonicalizationContext c14nContext)
doExecute in class AbstractSubjectCanonicalizationActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.