Class StorageServiceClientInformationManager

All Implemented Interfaces:
ClientInformationManager, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class StorageServiceClientInformationManager extends BaseStorageServiceClientInformationComponent implements ClientInformationManager
A ClientInformationManager exploiting StorageService for storing the data.
  • Field Details

    • log

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

    • StorageServiceClientInformationManager

      public StorageServiceClientInformationManager()
  • Method Details

    • storeClientInformation

      public void storeClientInformation(@Nonnull com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation clientInformation, @Nullable Instant expiration, boolean replace) throws ClientInformationManagerException
      Store a ClientInformation object.
      Specified by:
      storeClientInformation in interface ClientInformationManager
      Parameters:
      clientInformation - The client information to be stored
      expiration - The expiration for record, or null
      replace - whether to replace an existing entry
      Throws:
      ClientInformationManagerException - If the client information cannot be stored.
    • storeClientInformation

      @Deprecated public void storeClientInformation(@Nonnull com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation clientInformation, @Nullable Instant expiration) throws ClientInformationManagerException
      Deprecated.
      Store a ClientInformation object.

      This method is deprecated, and is equivalent to calling the replacement method with replace set to false.

      Specified by:
      storeClientInformation in interface ClientInformationManager
      Parameters:
      clientInformation - The client information to be stored
      expiration - The expiration for record, or null
      Throws:
      ClientInformationManagerException - If the client information cannot be stored.
    • destroyClientInformation

      public void destroyClientInformation(@Nullable com.nimbusds.oauth2.sdk.id.ClientID clientId)
      Invalidates or otherwise removes a ClientInformation from persistent storage.
      Specified by:
      destroyClientInformation in interface ClientInformationManager
      Parameters:
      clientId - the unique ID of the client information to destroy.