public interface AccessTokenService
| Modifier and Type | Method and Description |
|---|---|
AccessToken |
createToken(AccessToken token)
Creates a new access token.
|
void |
deleteToken(String id)
Deletes the token with the given ID.
|
List<AccessToken> |
getAllTokens()
Returns all the access tokens in the DB.
|
AccessToken |
getToken(String id)
Returns the token for the given ID.
|
AccessToken createToken(AccessToken token) throws ProfileException
token - the token to createProfileExceptionAccessToken getToken(String id) throws ProfileException
id - the ID of the tokenProfileExceptionList<AccessToken> getAllTokens() throws ProfileException
ProfileExceptionvoid deleteToken(String id) throws ProfileException
id - the ID of the tokenProfileExceptionCopyright © 2015 CrafterCMS. All Rights Reserved.