Class SelectMetadataLookupExtensionFlow
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.metadata.impl.SelectMetadataLookupExtensionFlow
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
A profile action that selects metadata lookup extension flows to invoke.
The flows available to be executed are held by the availableFlows. Available flows are executed in
the order that they are configured if their activation condition evaluates to true.
This action returns the flow ID to be executed or EventIds.PROCEED_EVENT_ID if
there are no flows available to be executed.
- Event:
EventIds.PROCEED_EVENT_ID, Selected flow ID to execute
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe available metadata lookup extension flows.private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> The strategy used to obtain the client id value to be stored in the context.private final org.slf4j.LoggerClass logger.private MetadataLookupExtensionContextThe context to operate on.The creation strategy for the metadata lookup extension context.private Function<ProfileRequestContext,String> The strategy used to obtain the profile id value to be stored in the context. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the available metadata lookup extension flows.voidsetClientIDLookupStrategy(Function<MessageContext, com.nimbusds.oauth2.sdk.id.ClientID> strategy) Set the strategy used to locate the client id of the request.voidsetMetadataLookupExtensionContextCreationStrategy(Function<ProfileRequestContext, MetadataLookupExtensionContext> strategy) Set the creation strategy for the metadata lookup extension context.voidSet the strategy used to locate the profile id to be used.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, 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. -
metadataLookupExtensionContextCreationStrategy
@Nonnull private Function<ProfileRequestContext,MetadataLookupExtensionContext> metadataLookupExtensionContextCreationStrategyThe creation strategy for the metadata lookup extension context. -
availableFlows
The available metadata lookup extension flows. -
clientIDLookupStrategy
@Nonnull private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> clientIDLookupStrategyThe strategy used to obtain the client id value to be stored in the context. -
profileIDLookupStrategy
The strategy used to obtain the profile id value to be stored in the context. -
metadataLookupExtensionContext
The context to operate on.
-
-
Constructor Details
-
SelectMetadataLookupExtensionFlow
public SelectMetadataLookupExtensionFlow()Constructor.
-
-
Method Details
-
setMetadataLookupExtensionContextCreationStrategy
public void setMetadataLookupExtensionContextCreationStrategy(@Nonnull Function<ProfileRequestContext, MetadataLookupExtensionContext> strategy) Set the creation strategy for the metadata lookup extension context.- Parameters:
strategy- creation strategy
-
setAvailableFlows
Set the available metadata lookup extension flows.- Parameters:
flows- available metadata lookup flows
-
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
-
setProfileIDLookupStrategy
Set the strategy used to locate the profile id to be used.- Parameters:
strategy- lookup strategy
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-