Interface AuthInfoStore

All Known Implementing Classes:
SingleUserEncryptedFileBasedAuthInfoStore, SingleUserFileBasedAuthInfoStore

public interface AuthInfoStore
Defines the interface used to store and load persisted user auth tokens.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the AuthInfo for the given keyed identifier.
    void
    store(String id, AuthInfo authInfo)
    Stores the given authInfo for the associated keyed identifier.
  • Method Details

    • store

      void store(String id, AuthInfo authInfo) throws AuthInfoStoreException
      Stores the given authInfo for the associated keyed identifier.
      Parameters:
      id - the identifier to associate the authentication information for a given user.
      authInfo - the authentication information
      Throws:
      IOException - if an error occurred while saving the authentication information
      AuthInfoStoreException
      See Also:
    • retrieve

      AuthInfo retrieve(String id) throws AuthInfoStoreException
      Retrieves the AuthInfo for the given keyed identifier.
      Parameters:
      id - the identifier associated with authentication information to fetch for
      Returns:
      the authentication information
      Throws:
      IOException - if an error occurred while retrieving the authentication information
      AuthInfoStoreException