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,Aware,MessageSource,MessageSourceAware,Action
An action that stores the
ClientInformation from the OIDCClientRegistrationResponseContext to the
associated ClientInformationManager.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation> Strategy used to locateOIDCClientInformationto be stored.private ClientInformationManagerThe client information manager used for storing the information.private final org.slf4j.LoggerClass logger.private Function<ProfileRequestContext,Duration> Strategy to obtain registration validity period policy.private Predicate<ProfileRequestContext>Condition used to determine if existing record should be replaced. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidGet the client information manager used for storing the information.voidsetClientInformationLookupStrategy(Function<ProfileRequestContext, com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation> strategy) Set the strategy used to locateOIDCClientInformationto be stored.voidSet the client information manager used for storing the information.voidSet strategy function to obtain registration validity period.voidsetReplacementCondition(Predicate<ProfileRequestContext> condition) Set the condition used to determine if existing record should be replaced.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
doPreExecute, 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. -
clientInformationLookupStrategy
@Nonnull private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation> clientInformationLookupStrategyStrategy used to locateOIDCClientInformationto be stored. -
replacementCondition
Condition used to determine if existing record should be replaced.
-
-
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.
-
setClientInformationLookupStrategy
public void setClientInformationLookupStrategy(@Nonnull Function<ProfileRequestContext, com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation> strategy) Set the strategy used to locateOIDCClientInformationto be stored.- Parameters:
strategy- lookup strategy- Since:
- 4.4.0
-
setReplacementCondition
Set the condition used to determine if existing record should be replaced.- Parameters:
condition- replacement condition- Since:
- 4.4.0
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-