public class InitializeRequestedPrincipalContext extends AbstractAuthenticationAction
RequestedPrincipalContext and attaches it to the current
AuthenticationContext, if the profile request context contains a RelyingPartyContext
with an AuthenticationProfileConfiguration containing one or more default authentication
methods.
If such a context already exists, it is left in place unless the replaceExistingContext property
is set.
EventIds.PROCEED_EVENT_ID, IdPEventIds.INVALID_RELYING_PARTY_CTX, IdPEventIds.INVALID_PROFILE_CONFIG| Modifier and Type | Field and Description |
|---|---|
private AuthenticationProfileConfiguration |
authenticationProfileConfig
Profile configuration source for requested principals.
|
private org.slf4j.Logger |
log
Class logger.
|
private com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
Strategy used to locate the
RelyingPartyContext associated with a given ProfileRequestContext. |
private boolean |
replaceExistingContext
Whether to replace an existing subcontext, if any.
|
| Constructor and Description |
|---|
InitializeRequestedPrincipalContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
void |
setRelyingPartyContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> strategy)
Set the strategy used to locate the
RelyingPartyContext associated with a given
ProfileRequestContext. |
void |
setReplaceExistingContext(boolean flag)
Whether any existing
RequestedPrincipalContext should be replaced, defaults to "false". |
doExecute, doPreExecute, setLookupStrategydoExecute, 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
private boolean replaceExistingContext
@Nonnull private com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
RelyingPartyContext associated with a given ProfileRequestContext.@Nullable private AuthenticationProfileConfiguration authenticationProfileConfig
public InitializeRequestedPrincipalContext()
public void setReplaceExistingContext(boolean flag)
RequestedPrincipalContext should be replaced, defaults to "false".
Normally an existing context would indicate requirements that shouldn't be circumvented to comply with expected profile behavior.
flag - flag to setpublic void setRelyingPartyContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> strategy)
RelyingPartyContext associated with a given
ProfileRequestContext.strategy - strategy used to locate the RelyingPartyContext associated with a given
ProfileRequestContextprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doPreExecute in class AbstractAuthenticationActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.