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.oidc.op.profile.impl.InitializeRelyingPartyContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class InitializeRelyingPartyContext extends net.shibboleth.idp.profile.AbstractProfileActionAction 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 com.nimbusds.oauth2.sdk.id.ClientIDclientIdOIDC client id.private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID>clientIDLookupStrategyStrategy used to obtain the client id value for authorize/token request.private booleaninboundUse the inbound message tree?private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext>oidcMetadataContextLookupStrategyStrategy that will returnOIDCMetadataContext.private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.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)voidsetClientIDLookupStrategy(Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> strategy)Set the strategy used to locate the client id of the request.voidsetInbound(boolean flag)Sets which message tree to use in deriving the ClientID and OIDC metadata.voidsetOidcMetadataContextLookupStrategy(Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> strategy)Set the strategy used to return theOIDCMetadataContext.voidsetRelyingPartyContextCreationStrategy(Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the strategy used to return or create theRelyingPartyContext.-
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.
-
relyingPartyContextCreationStrategy
@Nonnull private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextCreationStrategy
Strategy that will return or create aRelyingPartyContext.
-
oidcMetadataContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> oidcMetadataContextLookupStrategy
Strategy that will returnOIDCMetadataContext.
-
clientIDLookupStrategy
@Nonnull private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> clientIDLookupStrategy
Strategy used to obtain the client id value for authorize/token request.
-
clientId
@Nullable private com.nimbusds.oauth2.sdk.id.ClientID clientId
OIDC client id.
-
inbound
private boolean inbound
Use the inbound message tree?
-
-
Method Detail
-
setClientIDLookupStrategy
public void setClientIDLookupStrategy(@Nonnull Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> strategy)Set the strategy used to locate the client id of the request.- Parameters:
strategy- lookup strategy
-
setRelyingPartyContextCreationStrategy
public void setRelyingPartyContextCreationStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the strategy used to return or create theRelyingPartyContext.- Parameters:
strategy- creation strategy
-
setOidcMetadataContextLookupStrategy
public void setOidcMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> strategy)Set the strategy used to return theOIDCMetadataContext.- Parameters:
strategy- The lookup strategy.
-
setInbound
public void setInbound(boolean flag)
Sets which message tree to use in deriving the ClientID and OIDC metadata.Defaults to true (the inbound tree).
- Parameters:
flag- true iff the inbound tree should be used- Since:
- 3.1.0
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-