Class InitializeRelyingPartyContext
- 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.authn.oidc.rp.impl.InitializeRelyingPartyContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class InitializeRelyingPartyContext extends AbstractProfileAction
Action that adds aRelyingPartyContextto the currentProfileRequestContexttree via a creation function.- 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
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,OIDCProviderMetadataContext>oidcProviderMetadataContextLookupStrategyStrategy that will returnOIDCMetadataContext.private Function<ProfileRequestContext,OIDCPeerEntityContext>peerEntityContextLookupStrategyStrategy used to look up theSAMLPeerEntityContextto draw from.private OIDCPeerEntityContextpeerEntityCtxOIDC peer entity context to populate from.private Function<ProfileRequestContext,RelyingPartyContext>relyingPartyContextCreationStrategyStrategy that will return or create aRelyingPartyContext.
-
Constructor Summary
Constructors Constructor Description InitializeRelyingPartyContext()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetOidcProviderMetadataContextLookupStrategy(Function<ProfileRequestContext,OIDCProviderMetadataContext> strategy)Set the strategy used to return theOIDCProviderMetadataContext.voidsetPeerEntityContextLookupStrategy(Function<ProfileRequestContext,OIDCPeerEntityContext> strategy)Set the strategy used to look up theOIDCPeerEntityContextto draw from.voidsetRelyingPartyContextCreationStrategy(Function<ProfileRequestContext,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, 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.
-
relyingPartyContextCreationStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextCreationStrategy
Strategy that will return or create aRelyingPartyContext.
-
oidcProviderMetadataContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCProviderMetadataContext> oidcProviderMetadataContextLookupStrategy
Strategy that will returnOIDCMetadataContext.
-
peerEntityCtx
@Nullable private OIDCPeerEntityContext peerEntityCtx
OIDC peer entity context to populate from.
-
peerEntityContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCPeerEntityContext> peerEntityContextLookupStrategy
Strategy used to look up theSAMLPeerEntityContextto draw from.
-
-
Method Detail
-
setPeerEntityContextLookupStrategy
public void setPeerEntityContextLookupStrategy(@Nonnull Function<ProfileRequestContext,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<ProfileRequestContext,RelyingPartyContext> strategy)Set the strategy used to return or create theRelyingPartyContext.- Parameters:
strategy- creation strategy
-
setOidcProviderMetadataContextLookupStrategy
public void setOidcProviderMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext,OIDCProviderMetadataContext> strategy)Set the strategy used to return theOIDCProviderMetadataContext.- Parameters:
strategy- The lookup strategy.
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-