Interface ResourceServerStore

    • Method Detail

      • create

        ResourceServer create​(ClientModel client)

        Creates a ResourceServer instance backed by this persistent storage implementation.

        Parameters:
        client - the client acting as a resource server
        Returns:
        an instance backed by the underlying storage implementation
      • delete

        void delete​(ClientModel client)
        Removes a ResourceServer instance, with the given client from the persistent storage.
        Parameters:
        client - the client acting as a resource server
      • findById

        ResourceServer findById​(String id)
        Returns a ResourceServer instance based on its identifier.
        Parameters:
        id - the identifier of an existing resource server instance
        Returns:
        the resource server instance with the given identifier or null if no instance was found
      • findByClient

        ResourceServer findByClient​(ClientModel client)
        Returns a ResourceServer instance based on a client.
        Parameters:
        client - the client acting as a resource server
        Returns:
        the resource server instance or null if no instance was found