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 org.opensaml.saml.saml2.core.AuthnRequest |
authnRequest
Incoming SAML 2.0 request, if present.
|
private org.slf4j.Logger |
log
Class logger.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.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(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
void |
setRequestLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.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 Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AuthnRequest> requestLookupStrategy
AuthnRequest to operate on, if any.@Nullable private org.opensaml.saml.saml2.core.AuthnRequest authnRequest
public InitializeAuthenticationContext()
public void setRequestLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AuthnRequest> strategy)
AuthnRequest to examine, if any.strategy - strategy used to locate the AuthnRequestprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.