Class StoreClientInformation
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.StoreClientInformation
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,org.springframework.beans.factory.Aware,org.springframework.context.MessageSource,org.springframework.context.MessageSourceAware,org.springframework.webflow.execution.Action
An action that stores the
ClientInformation from the OIDCClientRegistrationResponseContext to the
associated ClientInformationManager.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClientInformationManagerThe client information manager used for storing the information.private final org.slf4j.LoggerClass logger.Strategy used to locate theOIDCClientRegistrationTokenClaimsContextassociated with the request.The OIDCClientRegistrationTokenClaimsContext from which to optionally obtain client ID.private Function<ProfileRequestContext,Duration> Strategy to obtain registration validity period policy.private OIDCClientInformationResponseThe response message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) Get the client information manager used for storing the information.voidSet the client information manager used for storing the information.voidsetRegistrationTokenContextLookupStrategy(Function<ProfileRequestContext, OIDCClientRegistrationTokenClaimsContext> strategy) Set the strategy used to locate theOIDCClientRegistrationTokenClaimsContextassociated with a given request.voidSet strategy function to obtain registration validity period.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. -
clientInformationManager
The client information manager used for storing the information. -
registrationValidityPeriodStrategy
Strategy to obtain registration validity period policy. -
registrationTokenContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCClientRegistrationTokenClaimsContext> registrationTokenContextLookupStrategyStrategy used to locate theOIDCClientRegistrationTokenClaimsContextassociated with the request. -
registrationTokenCtx
The OIDCClientRegistrationTokenClaimsContext from which to optionally obtain client ID. -
response
The response message.
-
-
Constructor Details
-
StoreClientInformation
public StoreClientInformation()Constructor.
-
-
Method Details
-
setRegistrationValidityPeriodStrategy
public void setRegistrationValidityPeriodStrategy(@Nullable Function<ProfileRequestContext, Duration> strategy) Set strategy function to obtain registration validity period.- Parameters:
strategy- The strategy function.
-
getClientInformationManager
Get the client information manager used for storing the information.- Returns:
- The client information manager used for storing the information
-
setClientInformationManager
Set the client information manager used for storing the information.- Parameters:
manager- The client information manager used for storing the information.
-
setRegistrationTokenContextLookupStrategy
public void setRegistrationTokenContextLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCClientRegistrationTokenClaimsContext> strategy) Set the strategy used to locate theOIDCClientRegistrationTokenClaimsContextassociated with a given request.- Parameters:
strategy- lookup strategy
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-