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.- Event:
EventIds.PROCEED_EVENT_ID,IdPEventIds.INVALID_RELYING_PARTY_CTX,EventIds.INVALID_MSG_CTX
-
-
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 net.shibboleth.oidc.metadata.context.OIDCMetadataContextoidcMetadataCtxThe OIDC metadata context used as a source for the SAML metadata context.private Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext>oidcMetadataCtxLookupStrategyStrategy function to lookup theOIDCMetadataContext.private net.shibboleth.idp.profile.context.RelyingPartyContextrelyingPartyCtxThe relying party context used for storing the SAML metadata context.private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext)Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext>getOIDCMetadataContextLookupStrategy()Get the mechanism to lookup theOIDCMetadataContextfrom theProfileRequestContext.Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext>getRelyingPartyContextLookupStrategy()Get the mechanism to lookup theRelyingPartyContextfrom theProfileRequestContext.Function<ProfileRequestContext,SAMLMetadataContext>getSAMLMetadataContextLookupStrategy()Get the mechanism to lookup theSAMLMetadataContextfrom theProfileRequestContext.voidsetDefaultLanguage(String language)Set the default language when it has not been defined in the metadata.voidsetOIDCMetadataContextLookupStrategy(Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> strgy)Set the mechanism to lookup theOIDCMetadataContextfrom theProfileRequestContext.voidsetRelyingPartyContextLookupStrategy(Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.voidsetSAMLMetadataContextLookupStrategy(Function<ProfileRequestContext,SAMLMetadataContext> strategy)Set the strategy used to locate theSAMLMetadataContextassociated with a givenProfileRequestContext.-
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, 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, 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,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> oidcMetadataCtxLookupStrategy
Strategy function to lookup theOIDCMetadataContext.
-
relyingPartyCtxLookupStrategy
@Nonnull private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.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 net.shibboleth.oidc.metadata.context.OIDCMetadataContext oidcMetadataCtx
The OIDC metadata context used as a source for the SAML metadata context.
-
relyingPartyCtx
private net.shibboleth.idp.profile.context.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,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> getOIDCMetadataContextLookupStrategy()
Get the mechanism to lookup theOIDCMetadataContextfrom theProfileRequestContext.- Returns:
- The mechanism to lookup the
OIDCMetadataContextfrom theProfileRequestContext.
-
setOIDCMetadataContextLookupStrategy
public void setOIDCMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> strgy)Set the mechanism to lookup theOIDCMetadataContextfrom theProfileRequestContext.- Parameters:
strgy- What to set.
-
getRelyingPartyContextLookupStrategy
@Nonnull public Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> getRelyingPartyContextLookupStrategy()
Get the mechanism to lookup theRelyingPartyContextfrom theProfileRequestContext.- Returns:
- The mechanism to lookup the
RelyingPartyContextfrom theProfileRequestContext.
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.idp.profile.context.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
-
-