public class ProcessRequestedAuthnContext extends AbstractAuthenticationAction
RequestedAuthnContext in a SAML 2 AuthnRequest,
and populates a RequestedPrincipalContext with the corresponding information.
If this feature is disallowed by profile configuration, then an error event is signaled.
Each requested context class or declaration reference is translated into a custom Principal
for use by the authentication subsystem to drive flow selection.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTX| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.saml2.core.AuthnRequest |
authnRequest
The request message to read from.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AuthnRequest> |
authnRequestLookupStrategy
Lookup strategy function for obtaining
AuthnRequest. |
private Set<String> |
ignoredContexts
Context URIs to ignore in a request.
|
private org.slf4j.Logger |
log
Class logger.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
Strategy used to look up a
RelyingPartyContext for configuration options. |
| Constructor and Description |
|---|
ProcessRequestedAuthnContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
void |
setAuthnRequestLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AuthnRequest> strategy)
Set the strategy used to locate the
AuthnRequest to read from. |
void |
setIgnoredContexts(Collection<String> contexts)
Set the context class or declaration URIs to ignore if found in a request.
|
void |
setRelyingPartyContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
Set the strategy used to return the
RelyingPartyContext for configuration options. |
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
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
RelyingPartyContext for configuration options.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AuthnRequest> authnRequestLookupStrategy
AuthnRequest.@Nonnull @NonnullElements private Set<String> ignoredContexts
@Nullable private org.opensaml.saml.saml2.core.AuthnRequest authnRequest
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
RelyingPartyContext for configuration options.strategy - lookup strategypublic void setAuthnRequestLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.core.AuthnRequest> strategy)
AuthnRequest to read from.strategy - lookup strategypublic void setIgnoredContexts(@Nonnull@NonnullElements Collection<String> contexts)
This defaults to only AuthnContext.UNSPECIFIED_AUTHN_CTX.
contexts - contexts to ignoreprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doPreExecute in class AbstractAuthenticationActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.