Interface IAuthStore


public interface IAuthStore
  • Method Details

    • getTokens

      Returns a list of all the token records stored in the auth store.
      Returns:
      a list of all token records stored in the auth store.
      Throws:
      AuthStoreException - if there is an issue accessing the auth store.
    • getTokensByLoginId

      List<IInternalAuthToken> getTokensByLoginId(String loginId) throws AuthStoreException
      Returns a list of token records stored in the auth store that match a given login ID.
      Returns:
      a list of all token records stored in the auth store by login ID.
      Throws:
      AuthStoreException - if there is an issue accessing the auth store.
    • storeToken

      void storeToken(String clientId, String description, IInternalUser owner) throws AuthStoreException
      Stores a new token record in the auth store's tokens database.
      Parameters:
      clientId - the ID of the Dex client that the token works with.
      description - the user-provided description of the token.
      owner - the details of the user that the token belongs to.
      Throws:
      AuthStoreException - if there is an issue accessing the auth store.
    • deleteToken

      void deleteToken(String tokenId) throws AuthStoreException
      Deletes an existing token record from the auth store's tokens database.
      Parameters:
      tokenId - the ID of the token record to delete.
      Throws:
      AuthStoreException - if there was an issue accessing the auth store.
    • shutdown

      void shutdown() throws AuthStoreException
      Throws:
      AuthStoreException