Class AccessTokenServiceImpl
java.lang.Object
org.craftercms.profile.services.impl.AccessTokenServiceImpl
- All Implemented Interfaces:
AccessTokenService
Default implementation of
AccessTokenService
.- Author:
- avasquez
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkIfTokenActionIsAllowed
(String id, org.craftercms.profile.services.impl.AccessTokenServiceImpl.Action action) createToken
(AccessToken token) void
deleteToken
(String id) void
setAccessTokenRepository
(AccessTokenRepository accessTokenRepository)
-
Field Details
-
LOG_KEY_ACCESS_TOKEN_CREATED
- See Also:
-
LOG_KEY_ACCESS_TOKEN_DELETED
- See Also:
-
ERROR_KEY_CREATE_ACCESS_TOKEN_ERROR
- See Also:
-
ERROR_KEY_GET_ACCESS_TOKEN_ERROR
- See Also:
-
ERROR_KEY_GET_ALL_ACCESS_TOKENS_ERROR
- See Also:
-
ERROR_KEY_DELETE_ACCESS_TOKEN_ERROR
- See Also:
-
accessTokenRepository
-
hashSalt
protected byte[] hashSalt
-
-
Constructor Details
-
AccessTokenServiceImpl
public AccessTokenServiceImpl()
-
-
Method Details
-
setAccessTokenRepository
-
createToken
- Specified by:
createToken
in interfaceAccessTokenService
- Throws:
ProfileException
-
getToken
- Specified by:
getToken
in interfaceAccessTokenService
- Throws:
ProfileException
-
getAllTokens
- Specified by:
getAllTokens
in interfaceAccessTokenService
- Throws:
ProfileException
-
deleteToken
- Specified by:
deleteToken
in interfaceAccessTokenService
- Throws:
ProfileException
-
checkIfTokenActionIsAllowed
protected void checkIfTokenActionIsAllowed(String id, org.craftercms.profile.services.impl.AccessTokenServiceImpl.Action action)
-