Class SetAuthenticationContextClassReferenceToResponseContext
- java.lang.Object
-
- net.shibboleth.utilities.java.support.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<com.nimbusds.openid.connect.sdk.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.SetAuthenticationContextClassReferenceToResponseContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class SetAuthenticationContextClassReferenceToResponseContext extends AbstractOIDCAuthenticationResponseAction
Action that sets authentication context class reference to work contextOIDCAuthenticationResponseContextlocated underInOutOperationContext.getOutboundMessageContext().
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.authn.context.AuthenticationContextauthCtxAuthentication context.private Function<ProfileRequestContext,net.shibboleth.oidc.authn.principal.AuthenticationContextClassReferencePrincipal>classRefLookupStrategyStrategy used to determine the AuthnContextClassRef.private org.slf4j.LoggerlogClass logger.private net.shibboleth.idp.authn.context.PreferredPrincipalContextpreferredPrincipalContextpreferred principal context.private net.shibboleth.idp.authn.context.RequestedPrincipalContextrequestedPrincipalContextrequested principal context.
-
Constructor Summary
Constructors Constructor Description SetAuthenticationContextClassReferenceToResponseContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetClassRefLookupStrategy(Function<ProfileRequestContext,net.shibboleth.oidc.authn.principal.AuthenticationContextClassReferencePrincipal> strategy)Set the strategy function to use to obtain the authentication context class reference to use.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationResponseAction
getMetadataContext, getOidcResponseContext
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
getAuthenticationRequest
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction
getRequest
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
authCtx
@Nullable private net.shibboleth.idp.authn.context.AuthenticationContext authCtx
Authentication context.
-
requestedPrincipalContext
@Nullable private net.shibboleth.idp.authn.context.RequestedPrincipalContext requestedPrincipalContext
requested principal context.
-
preferredPrincipalContext
@Nullable private net.shibboleth.idp.authn.context.PreferredPrincipalContext preferredPrincipalContext
preferred principal context.
-
classRefLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,net.shibboleth.oidc.authn.principal.AuthenticationContextClassReferencePrincipal> classRefLookupStrategy
Strategy used to determine the AuthnContextClassRef.
-
-
Method Detail
-
setClassRefLookupStrategy
public void setClassRefLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.oidc.authn.principal.AuthenticationContextClassReferencePrincipal> strategy)Set the strategy function to use to obtain the authentication context class reference to use.- Parameters:
strategy- authentication context class reference lookup strategy
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractOIDCAuthenticationResponseAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-