Class AbstractOIDCAuthenticationResponseAction
- 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.authn.AbstractAuthenticationAction
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCAuthenticationResponseAction
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
- Direct Known Subclasses:
AbstractHttpOIDCAuthenticationAction,ValidateResponseState
public abstract class AbstractOIDCAuthenticationResponseAction extends AbstractAuthenticationAction
Abstract class for actions based on theAuthenticationResponselocated under theInOutOperationContext.getInboundMessageContext()and the builtOIDCAuthenticationRequestlocated under theInOutOperationContext.getOutboundMessageContext().Also makes available the OpenID Provider metadata context.
-
-
Field Summary
Fields Modifier and Type Field Description private OIDCAuthenticationRequestauthnRequestOIDC authentication request built by the IdP.private com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponseauthnResponseOIDC authentication response from upstream OP.private org.slf4j.LoggerlogClass logger.private OIDCProviderMetadataContextproviderMetadataContextOIDC Metadata context.private Function<ProfileRequestContext,OIDCProviderMetadataContext>providerMetadataLookupStrategyLookup strategy to locate the OP metadata to use.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOIDCAuthenticationResponseAction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoPreExecute(ProfileRequestContext profileRequestContext, AuthenticationContext authenticationContext)protected OIDCAuthenticationRequestgetAuthenticationRequest()Returns the authentication request build by this IdP.protected com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponsegetAuthenticationResponse()Returns the authentication response from the upstream OP.protected OIDCProviderMetadataContextgetProviderMetadataContext()Returns the OIDC provider metadata context.voidsetProviderMetadataLookupStrategy(Function<ProfileRequestContext,OIDCProviderMetadataContext> strategy)Set the lookup strategy to locate the OpenID providers metadata.-
Methods inherited from class net.shibboleth.idp.authn.AbstractAuthenticationAction
doExecute, doExecute, doPreExecute, setAuthenticationContextLookupStrategy
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, 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, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, 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 final org.slf4j.Logger log
Class logger.
-
providerMetadataLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCProviderMetadataContext> providerMetadataLookupStrategy
Lookup strategy to locate the OP metadata to use.
-
authnResponse
@Nullable private com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse authnResponse
OIDC authentication response from upstream OP.
-
authnRequest
@Nullable private OIDCAuthenticationRequest authnRequest
OIDC authentication request built by the IdP.
-
providerMetadataContext
@Nullable private OIDCProviderMetadataContext providerMetadataContext
OIDC Metadata context.
-
-
Method Detail
-
setProviderMetadataLookupStrategy
public void setProviderMetadataLookupStrategy(@Nonnull Function<ProfileRequestContext,OIDCProviderMetadataContext> strategy)Set the lookup strategy to locate the OpenID providers metadata.- Parameters:
strategy- the strategy.
-
getAuthenticationResponse
@Nullable protected com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse getAuthenticationResponse()
Returns the authentication response from the upstream OP. Should never benullafterAbstractAuthenticationAction.doPreExecute(ProfileRequestContext)has been called.- Returns:
- the authentication response.
-
getAuthenticationRequest
@Nullable protected OIDCAuthenticationRequest getAuthenticationRequest()
Returns the authentication request build by this IdP. Should never benullafterAbstractAuthenticationAction.doPreExecute(ProfileRequestContext)has been called.- Returns:
- the authentication request.
-
getProviderMetadataContext
@Nullable protected OIDCProviderMetadataContext getProviderMetadataContext()
Returns the OIDC provider metadata context. Should never benullafterAbstractAuthenticationAction.doPreExecute(ProfileRequestContext)has been called.- Returns:
- The provider metadata context.
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)- Overrides:
doPreExecutein classAbstractAuthenticationAction
-
-