public class PopulateSubjectContext extends AbstractProfileAction
SubjectContext
child of the ProfileRequestContext.
Used in specialized cases to directly populate a context to drive subsequent behavior for flows that don't involve the full authentication machinery and the protections involved.
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private String |
principalName
The principal name extracted from the context tree.
|
private com.google.common.base.Function<ProfileRequestContext,String> |
principalNameLookupStrategy
Lookup strategy for principal name to populate.
|
| Constructor and Description |
|---|
PopulateSubjectContext() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
void |
setPrincipalNameLookupStrategy(com.google.common.base.Function<ProfileRequestContext,String> strategy)
Set lookup strategy for the principal name to use.
|
doExecute, 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
@NonnullAfterInit private com.google.common.base.Function<ProfileRequestContext,String> principalNameLookupStrategy
public void setPrincipalNameLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,String> strategy)
strategy - lookup strategyprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
doPreExecute in class AbstractConditionalProfileActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.