Class InitializeRelyingPartyContext
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.InitializeRelyingPartyContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that adds a
RelyingPartyContext to the current ProfileRequestContext tree 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
FieldsModifier and TypeFieldDescriptionprivate ClientIDOIDC client id.private Function<MessageContext,ClientID> Strategy used to obtain the client id value for authorize/token request.private booleanUse the inbound message tree?private final org.slf4j.LoggerClass logger.Strategy that will returnOIDCMetadataContext.Strategy that will return or create aRelyingPartyContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetClientIDLookupStrategy(Function<MessageContext, 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.voidSet the strategy used to return theOIDCMetadataContext.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, 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<ProfileRequestContext,RelyingPartyContext> relyingPartyContextCreationStrategyStrategy that will return or create aRelyingPartyContext. -
oidcMetadataContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCMetadataContext> oidcMetadataContextLookupStrategyStrategy that will returnOIDCMetadataContext. -
clientIDLookupStrategy
Strategy used to obtain the client id value for authorize/token request. -
clientId
OIDC client id. -
inbound
private boolean inboundUse the inbound message tree?
-
-
Constructor Details
-
InitializeRelyingPartyContext
public InitializeRelyingPartyContext()Constructor.
-
-
Method Details
-
setClientIDLookupStrategy
Set the strategy used to locate the client id of the request.- Parameters:
strategy- lookup strategy
-
setRelyingPartyContextCreationStrategy
public void setRelyingPartyContextCreationStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to return or create theRelyingPartyContext.- Parameters:
strategy- creation strategy
-
setOidcMetadataContextLookupStrategy
public void setOidcMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext, 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
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-