Class AbstractAuthorizationResponseAction
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.sp.oidc.profile.impl.AbstractAuthorizationResponseAction
- All Implemented Interfaces:
net.shibboleth.shared.component.Component,net.shibboleth.shared.component.DestructableComponent,net.shibboleth.shared.component.InitializableComponent,org.opensaml.profile.action.ProfileAction,Aware,MessageSource,MessageSourceAware,Action
- Direct Known Subclasses:
AbstractHttpOAuthAction,ValidateOAuthAccessTokenResponse
public abstract class AbstractAuthorizationResponseAction
extends net.shibboleth.idp.profile.AbstractProfileAction
Abstract class for actions based on the
AuthenticationResponse located under
the InOutOperationContext.getInboundMessageContext().
Also makes available the OpenID Provider metadata context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponseOIDC authentication response from upstream OP.private final org.slf4j.LoggerClass logger.private net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContextOIDC Metadata context.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> Lookup strategy to locate the OP metadata to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) protected com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponseReturns the authentication response from the upstream OP.protected net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContextReturns the OIDC provider metadata context.voidsetProviderMetadataLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> strategy) Set the lookup strategy to locate the OpenID providers metadata.Methods 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
doExecute, 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, doInitialize, 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. -
providerMetadataLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> providerMetadataLookupStrategyLookup strategy to locate the OP metadata to use. -
authnResponse
@Nullable private com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse authnResponseOIDC authentication response from upstream OP. -
providerMetadataContext
@Nullable private net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext providerMetadataContextOIDC Metadata context.
-
-
Constructor Details
-
AbstractAuthorizationResponseAction
protected AbstractAuthorizationResponseAction()Constructor.
-
-
Method Details
-
setProviderMetadataLookupStrategy
public void setProviderMetadataLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.oidc.metadata.context.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 benullafterdoPreExecute(ProfileRequestContext)has been called.- Returns:
- the authentication response.
-
getProviderMetadataContext
@Nullable protected net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext getProviderMetadataContext()Returns the OIDC provider metadata context. Should never benullafterdoPreExecute(ProfileRequestContext)has been called.- Returns:
- The provider metadata context.
-
doPreExecute
protected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext) - Overrides:
doPreExecutein classorg.opensaml.profile.action.AbstractConditionalProfileAction
-