InboundMessageType - type of in-bound messageOutboundMessageType - type of out-bound messagepublic abstract class AbstractSubjectCanonicalizationAction<InboundMessageType,OutboundMessageType> extends AbstractProfileAction<InboundMessageType,OutboundMessageType>
AbstractProfileAction, this action also looks up and makes available the
SubjectCanonicalizationContext.
Authentication action implementations should override
doExecute(ProfileRequestContext, SubjectCanonicalizationContext)| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
lowercase
Convert to lowercase prior to transforms?
|
private SubjectCanonicalizationContext |
scContext
SubjectCanonicalizationContext to operate on. |
private com.google.common.base.Function<ProfileRequestContext,SubjectCanonicalizationContext> |
scCtxLookupStrategy
Strategy used to find the
SubjectCanonicalizationContext from the
ProfileRequestContext. |
private List<Pair<Pattern,String>> |
transforms
Match patterns and replacement strings to apply.
|
private boolean |
trim
Trim prior to transforms?
|
private boolean |
uppercase
Convert to uppercase prior to transforms?
|
| Constructor and Description |
|---|
AbstractSubjectCanonicalizationAction()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
applyTransforms(String input)
Apply any configured regular expression replacements to an input value and return the result.
|
protected void |
doExecute(ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext) |
protected void |
doExecute(ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext,
SubjectCanonicalizationContext c14nContext)
Performs this authentication action.
|
protected boolean |
doPreExecute(ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext) |
protected boolean |
doPreExecute(ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext,
SubjectCanonicalizationContext c14nContext)
Performs this c14n action's pre-execute step.
|
void |
setLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SubjectCanonicalizationContext> strategy)
Set the context lookup strategy.
|
void |
setLowercase(boolean flag)
Controls conversion to lowercase prior to applying any transforms.
|
void |
setTransforms(Collection<Pair<String,String>> newTransforms)
A collection of regular expression and replacement pairs.
|
void |
setTrim(boolean flag)
Controls whitespace trimming prior to applying any transforms.
|
void |
setUppercase(boolean flag)
Controls conversion to uppercase prior to applying any transforms.
|
doExecute, 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 org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,SubjectCanonicalizationContext> scCtxLookupStrategy
SubjectCanonicalizationContext from the
ProfileRequestContext.@Nullable private SubjectCanonicalizationContext scContext
SubjectCanonicalizationContext to operate on.@Nonnull @NonnullElements private List<Pair<Pattern,String>> transforms
private boolean uppercase
private boolean lowercase
private boolean trim
public AbstractSubjectCanonicalizationAction()
public void setLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,SubjectCanonicalizationContext> strategy)
strategy - lookup strategy function for SubjectCanonicalizationContext.public void setTransforms(@Nonnull@NonnullElements Collection<Pair<String,String>> newTransforms)
newTransforms - collection of replacement transformspublic void setUppercase(boolean flag)
flag - uppercase flagpublic void setLowercase(boolean flag)
flag - lowercase flagpublic void setTrim(boolean flag)
flag - trim flagprotected boolean doPreExecute(@Nonnull ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext)
doPreExecute in class AbstractConditionalProfileAction<InboundMessageType,OutboundMessageType>protected boolean doPreExecute(@Nonnull ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext, @Nonnull SubjectCanonicalizationContext c14nContext)
profileRequestContext - the current IdP profile request contextc14nContext - the current subject canonicalization contextprotected final void doExecute(@Nonnull ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext)
doExecute in class AbstractProfileAction<InboundMessageType,OutboundMessageType>protected void doExecute(@Nonnull ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext, @Nonnull SubjectCanonicalizationContext c14nContext)
profileRequestContext - the current IdP profile request contextc14nContext - the current subject canonicalization contextCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.