public class SimpleSubjectCanonicalization extends AbstractSubjectCanonicalizationAction
SubjectCanonicalizationContext child of the current
ProfileRequestContext, and transforms the input Subject
into a principal name by searching for one and only one UsernamePrincipal custom principal.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 |
SimpleSubjectCanonicalization.ActivationCondition
A predicate that determines if this action can run or not.
|
| Modifier and Type | Field and Description |
|---|---|
private SimpleSubjectCanonicalization.ActivationCondition |
embeddedPredicate
Supplies logic for pre-execute test.
|
private UsernamePrincipal |
usernamePrincipal
The custom Principal to operate on.
|
| Constructor and Description |
|---|
SimpleSubjectCanonicalization()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext,
SubjectCanonicalizationContext c14nContext) |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext,
SubjectCanonicalizationContext c14nContext) |
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, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final SimpleSubjectCanonicalization.ActivationCondition embeddedPredicate
@Nullable private UsernamePrincipal usernamePrincipal
public SimpleSubjectCanonicalization()
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull SubjectCanonicalizationContext c14nContext)
doPreExecute in class AbstractSubjectCanonicalizationActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull SubjectCanonicalizationContext c14nContext)
doExecute in class AbstractSubjectCanonicalizationActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.