Class InitializeRelyingPartyContextFromOIDCPeer
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.InitializeRelyingPartyContextFromOIDCPeer
- 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
public class InitializeRelyingPartyContextFromOIDCPeer
extends net.shibboleth.idp.profile.AbstractProfileAction
Action that adds a
RelyingPartyContext to the current ProfileRequestContext tree via a creation
function. The context is populated via a lookup strategy to locate a OIDCPeerEntityContext,
by default via InOutOperationContext.getInboundMessageContext().- Event:
EventIds.INVALID_MSG_CTX,EventIds.INVALID_PROFILE_CTX,IdPEventIds.INVALID_RELYING_PARTY_CTX- Postcondition:
- ProfileRequestContext.getSubcontext(RelyingPartyContext.class) != null with relying party id set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> Strategy that will returnOIDCMetadataContext.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.profile.messaging.context.OIDCPeerEntityContext> Strategy used to look up theOIDCPeerEntityContextto draw from.private net.shibboleth.oidc.profile.messaging.context.OIDCPeerEntityContextOIDC peer entity context to populate from.private StringThe stashed identifier of the OIDC entity.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.profile.context.RelyingPartyContext> Strategy that will return or create aRelyingPartyContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) protected booleandoPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) voidsetOidcProviderMetadataContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> strategy) Set the strategy used to return theOIDCProviderMetadataContext.voidsetPeerEntityContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.oidc.profile.messaging.context.OIDCPeerEntityContext> strategy) Set the strategy used to look up theOIDCPeerEntityContextto draw from.voidsetRelyingPartyContextCreationStrategy(Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.profile.context.RelyingPartyContext> strategy) Set the strategy used to return or create theRelyingPartyContext.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
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. -
relyingPartyContextCreationStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.profile.context.RelyingPartyContext> relyingPartyContextCreationStrategyStrategy that will return or create aRelyingPartyContext. -
oidcProviderMetadataContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> oidcProviderMetadataContextLookupStrategyStrategy that will returnOIDCMetadataContext. -
peerEntityCtx
@NonnullBeforeExec private net.shibboleth.oidc.profile.messaging.context.OIDCPeerEntityContext peerEntityCtxOIDC peer entity context to populate from. -
peerEntityContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.profile.messaging.context.OIDCPeerEntityContext> peerEntityContextLookupStrategyStrategy used to look up theOIDCPeerEntityContextto draw from. -
peerIdentifier
The stashed identifier of the OIDC entity.
-
-
Constructor Details
-
InitializeRelyingPartyContextFromOIDCPeer
public InitializeRelyingPartyContextFromOIDCPeer()Constructor.
-
-
Method Details
-
setPeerEntityContextLookupStrategy
public void setPeerEntityContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.oidc.profile.messaging.context.OIDCPeerEntityContext> strategy) Set the strategy used to look up theOIDCPeerEntityContextto draw from.- Parameters:
strategy- strategy used to look up theOIDCPeerEntityContext
-
setRelyingPartyContextCreationStrategy
public void setRelyingPartyContextCreationStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.profile.context.RelyingPartyContext> strategy) Set the strategy used to return or create theRelyingPartyContext.- Parameters:
strategy- creation strategy
-
setOidcProviderMetadataContextLookupStrategy
public void setOidcProviderMetadataContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.oidc.metadata.context.OIDCProviderMetadataContext> strategy) Set the strategy used to return theOIDCProviderMetadataContext.- Parameters:
strategy- The lookup strategy.
-
doPreExecute
protected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext) - Overrides:
doPreExecutein classorg.opensaml.profile.action.AbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext) - Overrides:
doExecutein classorg.opensaml.profile.action.AbstractProfileAction
-