Class InitializeOutboundAuthenticationResponseMessageContext
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.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 outbound
MessageContext and related OIDC contexts to the ProfileRequestContext
based 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 the SAMLMetadataContext and populates it with service and UIInfo
-related data.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe default language when it has not been defined in the metadata.private final org.slf4j.LoggerClass logger.private OIDCMetadataContextThe OIDC metadata context used as a source for the SAML metadata context.Strategy function to lookup theOIDCMetadataContext.private RelyingPartyContextThe relying party context used for storing the SAML metadata context.Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.Strategy used to locate theSAMLMetadataContextassociated with a givenProfileRequestContext.private Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.id.ClientID> Strategy used to fetch the unregistered client ID value associated with a givenProfileRequestContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) Get the mechanism to lookup theOIDCMetadataContextfrom theProfileRequestContext.Get the mechanism to lookup theRelyingPartyContextfrom theProfileRequestContext.Get the mechanism to lookup theSAMLMetadataContextfrom theProfileRequestContext.protected voidpopulateEntityDescriptor(EntityDescriptor entityDescriptor, SPSSODescriptor spDescriptor, com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation clientInformation) Populates the corresponding elements at the given descriptors from the data from the given client information.voidsetDefaultLanguage(String language) Set the default language when it has not been defined in the metadata.voidSet the mechanism to lookup theOIDCMetadataContextfrom theProfileRequestContext.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.voidSet the strategy used to locate theSAMLMetadataContextassociated with a givenProfileRequestContext.voidsetUnregisteredClientIdLookupStrategy(Function<ProfileRequestContext, com.nimbusds.oauth2.sdk.id.ClientID> strategy) Set the strategy used to fetch the unregistered client ID value associated with a givenProfileRequestContext.Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractInitializeOutboundResponseMessageContext
setContextTypeMethods 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
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. -
oidcMetadataCtxLookupStrategy
Strategy function to lookup theOIDCMetadataContext. -
relyingPartyCtxLookupStrategy
Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
samlMetadataCtxLookupStrategy
Strategy used to locate theSAMLMetadataContextassociated with a givenProfileRequestContext. -
unregisteredClientIdLookupStrategy
@Nonnull private Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.id.ClientID> unregisteredClientIdLookupStrategyStrategy used to fetch the unregistered client ID value associated with a givenProfileRequestContext. -
oidcMetadataCtx
The OIDC metadata context used as a source for the SAML metadata context. -
relyingPartyCtx
The relying party context used for storing the SAML metadata context. -
defaultLanguage
The default language when it has not been defined in the metadata.
-
-
Constructor Details
-
InitializeOutboundAuthenticationResponseMessageContext
public InitializeOutboundAuthenticationResponseMessageContext()Constructor.
-
-
Method Details
-
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
-
setUnregisteredClientIdLookupStrategy
public void setUnregisteredClientIdLookupStrategy(@Nonnull Function<ProfileRequestContext, com.nimbusds.oauth2.sdk.id.ClientID> strategy) Set the strategy used to fetch the unregistered client ID value associated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to fetch the unregistered client ID value associated with a givenProfileRequestContext.
-
setDefaultLanguage
Set the default language when it has not been defined in the metadata.- Parameters:
language- What to set.
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractInitializeOutboundResponseMessageContext
-
populateEntityDescriptor
protected void populateEntityDescriptor(EntityDescriptor entityDescriptor, SPSSODescriptor spDescriptor, @Nonnull com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation clientInformation) Populates the corresponding elements at the given descriptors from the data from the given client information.- Parameters:
entityDescriptor- The entity descriptor whose contact persons are populated.spDescriptor- The SP descriptor whose UI info is populated.clientInformation- The client information used as the source data.
-