public class InitializeAuthenticationContext extends AbstractProfileAction
AuthenticationContext and attaches it to the current ProfileRequestContext.
If the incoming message is a SAML 2.0 AuthnRequest, then basic authentication policy (IsPassive,
ForceAuthn) is copied into the context from the request.
If a previously populated AuthenticationContext is found, and it contains a successful
AuthenticationResult, that result is copied to the new context via
AuthenticationContext.setInitialAuthenticationResult(net.shibboleth.idp.authn.AuthenticationResult).
EventIds.PROCEED_EVENT_IDAuthenticationContext| Modifier and Type | Field and Description |
|---|---|
private AuthnRequest |
authnRequest
Incoming SAML 2.0 request, if present.
|
private com.google.common.base.Predicate<ProfileRequestContext> |
forceAuthnPredicate
Extracts forceAuthn property from profile config.
|
private org.slf4j.Logger |
log
Class logger.
|
private com.google.common.base.Function<ProfileRequestContext,AuthnRequest> |
requestLookupStrategy
Strategy used to locate the
AuthnRequest to operate on, if any. |
| Constructor and Description |
|---|
InitializeAuthenticationContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
void |
setForceAuthnPredicate(com.google.common.base.Predicate<ProfileRequestContext> condition)
Set the predicate to apply to derive the message-independent forced authn default.
|
void |
setRequestLookupStrategy(com.google.common.base.Function<ProfileRequestContext,AuthnRequest> strategy)
Set the strategy used to locate the
AuthnRequest to examine, if any. |
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.Predicate<ProfileRequestContext> forceAuthnPredicate
@Nonnull private com.google.common.base.Function<ProfileRequestContext,AuthnRequest> requestLookupStrategy
AuthnRequest to operate on, if any.@Nullable private AuthnRequest authnRequest
public InitializeAuthenticationContext()
public void setForceAuthnPredicate(@Nonnull com.google.common.base.Predicate<ProfileRequestContext> condition)
condition - condition to setpublic void setRequestLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,AuthnRequest> strategy)
AuthnRequest to examine, if any.strategy - strategy used to locate the AuthnRequestprotected 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.