Interface AccessTokenService
- All Known Implementing Classes:
AccessTokenServiceImpl,AccessTokenServiceRestClient
public interface AccessTokenService
Service for managing access tokens. In order to call any method of this API, a client must use a master access
token.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptioncreateToken(AccessToken token) Creates a new access token.voiddeleteToken(String id) Deletes the token with the given ID.Returns all the access tokens in the DB.Returns the token for the given ID.
-
Method Details
-
createToken
Creates a new access token.- Parameters:
token- the token to create- Returns:
- the created token
- Throws:
ProfileException
-
getToken
Returns the token for the given ID.- Parameters:
id- the ID of the token- Returns:
- the token, or null if not found
- Throws:
ProfileException
-
getAllTokens
Returns all the access tokens in the DB.- Returns:
- all the access tokens
- Throws:
ProfileException
-
deleteToken
Deletes the token with the given ID.- Parameters:
id- the ID of the token- Throws:
ProfileException
-