Class InitializeOutboundAuthenticationResponseMessageContext
- 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.AbstractInitializeOutboundResponseMessageContext
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.InitializeOutboundAuthenticationResponseMessageContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class InitializeOutboundAuthenticationResponseMessageContext extends AbstractInitializeOutboundResponseMessageContext
Action that adds an outboundMessageContextand related OIDC contexts to theProfileRequestContextbased on the identity of a relying party accessed via a lookup strategy, by default an immediate child of the profile request context. This action also initializes theSAMLMetadataContextand populates it with service andUIInfo-related data.
-
-
Field Summary
Fields Modifier and Type Field Description private StringdefaultLanguageThe default language when it has not been defined in the metadata.private org.slf4j.LoggerlogClass logger.private OIDCMetadataContextoidcMetadataCtxThe OIDC metadata context used as a source for the SAML metadata context.private Function<ProfileRequestContext,OIDCMetadataContext>oidcMetadataCtxLookupStrategyStrategy function to lookup theOIDCMetadataContext.private RelyingPartyContextrelyingPartyCtxThe relying party context used for storing the SAML metadata context.private Function<ProfileRequestContext,RelyingPartyContext>relyingPartyCtxLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.private Function<ProfileRequestContext,SAMLMetadataContext>samlMetadataCtxLookupStrategyStrategy used to locate theSAMLMetadataContextassociated with a givenProfileRequestContext.
-
Constructor Summary
Constructors Constructor Description InitializeOutboundAuthenticationResponseMessageContext()Constructor.
-
Method Summary
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractInitializeOutboundResponseMessageContext
setContextType
-
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.
-
oidcMetadataCtxLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCMetadataContext> oidcMetadataCtxLookupStrategy
Strategy function to lookup theOIDCMetadataContext.
-
relyingPartyCtxLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyCtxLookupStrategy
Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.
-
samlMetadataCtxLookupStrategy
@Nonnull private Function<ProfileRequestContext,SAMLMetadataContext> samlMetadataCtxLookupStrategy
Strategy used to locate theSAMLMetadataContextassociated with a givenProfileRequestContext.
-
oidcMetadataCtx
private OIDCMetadataContext oidcMetadataCtx
The OIDC metadata context used as a source for the SAML metadata context.
-
relyingPartyCtx
private RelyingPartyContext relyingPartyCtx
The relying party context used for storing the SAML metadata context.
-
defaultLanguage
private String defaultLanguage
The default language when it has not been defined in the metadata.
-
-
Method Detail
-
getOIDCMetadataContextLookupStrategy
@Nonnull public Function<ProfileRequestContext,OIDCMetadataContext> getOIDCMetadataContextLookupStrategy()
Get the mechanism to lookup theOIDCMetadataContextfrom theProfileRequestContext.- Returns:
- The mechanism to lookup the
OIDCMetadataContextfrom theProfileRequestContext.
-
setOIDCMetadataContextLookupStrategy
public void setOIDCMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext,OIDCMetadataContext> strgy)Set the mechanism to lookup theOIDCMetadataContextfrom theProfileRequestContext.- Parameters:
strgy- What to set.
-
getRelyingPartyContextLookupStrategy
@Nonnull public Function<ProfileRequestContext,RelyingPartyContext> getRelyingPartyContextLookupStrategy()
Get the mechanism to lookup theRelyingPartyContextfrom theProfileRequestContext.- Returns:
- The mechanism to lookup the
RelyingPartyContextfrom theProfileRequestContext.
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext
-
getSAMLMetadataContextLookupStrategy
@Nonnull public Function<ProfileRequestContext,SAMLMetadataContext> getSAMLMetadataContextLookupStrategy()
Get the mechanism to lookup theSAMLMetadataContextfrom theProfileRequestContext.- Returns:
- The mechanism to lookup the
SAMLMetadataContextfrom theProfileRequestContext.
-
setSAMLMetadataContextLookupStrategy
public void setSAMLMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext,SAMLMetadataContext> strategy)Set the strategy used to locate theSAMLMetadataContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theSAMLMetadataContextassociated with a givenProfileRequestContext
-
setDefaultLanguage
public void setDefaultLanguage(@Nonnull String language)Set the default language when it has not been defined in the metadata.- Parameters:
language- What to set.
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractInitializeOutboundResponseMessageContext
-
-