Package dev.galasa.framework.spi.auth
Interface IAuthStore
public interface IAuthStore
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteToken
(String tokenId) Deletes an existing token record from the auth store's tokens database.Returns a list of all the token records stored in the auth store.getTokensByLoginId
(String loginId) Returns a list of token records stored in the auth store that match a given login ID.void
shutdown()
void
storeToken
(String clientId, String description, IInternalUser owner) Stores a new token record in the auth store's tokens database.
-
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
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
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
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
- Throws:
AuthStoreException
-