public class ExtractRemoteUser extends AbstractExtractionAction
UsernameContext, and attaches it to the AuthenticationContext.EventIds.PROCEED_EVENT_ID, AuthnEventIds.NO_CREDENTIALSProfileRequestContext.getSubcontext(AuthenticationContext.class, false) != null
UsernameContext.| Modifier and Type | Field and Description |
|---|---|
private Collection<String> |
checkAttributes
List of request attributes to check for an identity.
|
private Collection<String> |
checkHeaders
List of request headers to check for an identity.
|
private boolean |
checkRemoteUser
Whether to check REMOTE_USER for an identity.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
ExtractRemoteUser()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
protected void |
doInitialize() |
void |
setCheckAttributes(Collection<String> attributes)
Set the list of request attributes to check for an identity.
|
void |
setCheckHeaders(Collection<String> headers)
Set the list of request headers to check for an identity.
|
void |
setCheckRemoteUser(boolean flag)
Set whether to check REMOTE_USER for an identity.
|
applyTransforms, setLowercase, setTransforms, setTrim, setUppercasedoExecute, doPreExecute, doPreExecute, setLookupStrategydoExecute, 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 org.slf4j.Logger log
private boolean checkRemoteUser
@Nonnull @NonnullElements private Collection<String> checkAttributes
@Nonnull @NonnullElements private Collection<String> checkHeaders
public void setCheckRemoteUser(boolean flag)
flag - value to setpublic void setCheckAttributes(@Nonnull@NonnullElements Collection<String> attributes)
attributes - list of request attributes to checkpublic void setCheckHeaders(@Nonnull@NonnullElements Collection<String> headers)
headers - list of request headers to checkprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.