Interface ClientInformationManager


  • public interface ClientInformationManager
    A manager that is capable of managing ClientInformation instances.
    • Method Detail

      • storeClientInformation

        @Deprecated(since="1.2.0",
                    forRemoval=true)
        @Nonnull
        void storeClientInformation​(@Nonnull
                                    com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation clientInformation,
                                    @Nullable
                                    Instant expiration)
                             throws ClientInformationManagerException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Store a ClientInformation object.

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

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

        @Nonnull
        default void storeClientInformation​(@Nonnull
                                            com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation clientInformation,
                                            @Nullable
                                            Instant expiration,
                                            boolean replace)
                                     throws ClientInformationManagerException
        Store a ClientInformation object.
        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.
      • destroyClientInformation

        void destroyClientInformation​(@Nonnull
                                      com.nimbusds.oauth2.sdk.id.ClientID clientId)
                               throws ClientInformationManagerException
        Invalidates or otherwise removes a ClientInformation from persistent storage.
        Parameters:
        clientId - the unique ID of the client information to destroy.
        Throws:
        ClientInformationManagerException - If the client information cannot be destroyed.