Class StoreClientInformation

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class StoreClientInformation extends AbstractProfileAction
An action that stores the ClientInformation from the OIDCClientRegistrationResponseContext to the associated ClientInformationManager.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • clientInformationManager

      @NonnullAfterInit private ClientInformationManager clientInformationManager
      The client information manager used for storing the information.
    • registrationValidityPeriodStrategy

      @Nullable private Function<ProfileRequestContext,Duration> registrationValidityPeriodStrategy
      Strategy to obtain registration validity period policy.
    • clientInformationLookupStrategy

      @Nonnull private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation> clientInformationLookupStrategy
      Strategy used to locate OIDCClientInformation to be stored.
    • replacementCondition

      @Nonnull private Predicate<ProfileRequestContext> 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

      @Nonnull public ClientInformationManager getClientInformationManager()
      Get the client information manager used for storing the information.
      Returns:
      The client information manager used for storing the information
    • setClientInformationManager

      public void setClientInformationManager(@Nonnull ClientInformationManager manager)
      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 locate OIDCClientInformation to be stored.
      Parameters:
      strategy - lookup strategy
      Since:
      4.4.0
    • setReplacementCondition

      public void setReplacementCondition(@Nonnull Predicate<ProfileRequestContext> condition)
      Set the condition used to determine if existing record should be replaced.
      Parameters:
      condition - replacement condition
      Since:
      4.4.0
    • doInitialize

      protected void doInitialize() throws ComponentInitializationException
      Overrides:
      doInitialize in class AbstractInitializableComponent
      Throws:
      ComponentInitializationException
    • doExecute

      protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
      Overrides:
      doExecute in class AbstractProfileAction