Class ProcessRequestedAuthnContext
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction<AuthenticationRequest>
net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationResponseAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.ProcessRequestedAuthnContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,org.springframework.beans.factory.Aware,org.springframework.context.MessageSource,org.springframework.context.MessageSourceAware,org.springframework.webflow.execution.Action
An action that creates an
RequestedPrincipalContext or PreferredPrincipalContext and attaches it to
the current AuthenticationContext.
If the incoming message contains acr values we create principal context populated with matching
AuthenticationContextClassReferencePrincipal.
Acr values may be be given in acr_values request parameter or as requested id token
claim (acr) in requested claims parameter. If they are given in both, the outcome is unspecified.
Essential acrs are set to RequestedPrincipalContext and non-essential ones to
PreferredPrincipalContext.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>Strategy used to obtain whether all arc claims requests should be treated as Essential.private ClaimsSetRequest.Entryrequested acr claim.private Function<ProfileRequestContext,List<ACR>> Strategy used to obtain the requested acr values.acr values.private AuthenticationContextAuthentication context.private final org.slf4j.LoggerClass logger.Strategy used to look up aRelyingPartyContextfor configuration options. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the strategy used to obtain whether all arc claims requests should be treated as Essential.voidsetAcrLookupStrategy(Function<ProfileRequestContext, List<ACR>> strategy) Set the strategy used to locate the requested acr values.voidSet the strategy used to return theRelyingPartyContextfor configuration options.Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationResponseAction
getMetadataContext, getOidcResponseContextMethods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
getAuthenticationRequestMethods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction
getRequestMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
acrLookupStrategy
Strategy used to obtain the requested acr values. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to look up aRelyingPartyContextfor configuration options. -
acrAlwaysEssentialLookupStrategy
Strategy used to obtain whether all arc claims requests should be treated as Essential. -
authenticationContext
Authentication context. -
acrValues
acr values. -
acrClaim
requested acr claim.
-
-
Constructor Details
-
ProcessRequestedAuthnContext
public ProcessRequestedAuthnContext()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to return theRelyingPartyContextfor configuration options.- Parameters:
strategy- lookup strategy- Since:
- 4.3.0
-
setAcrLookupStrategy
Set the strategy used to locate the requested acr values.- Parameters:
strategy- lookup strategy
-
setAcrAlwaysEssentialLookupStrategy
Set the strategy used to obtain whether all arc claims requests should be treated as Essential.- Parameters:
strategy- lookup strategy
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractOIDCAuthenticationResponseAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-