public class AccessTokenServiceImpl extends PersistedServiceImpl implements AccessTokenService
AccessToken always contains the plain text value.mongoConnection| Constructor and Description |
|---|
AccessTokenServiceImpl(MongoConnection mongoConnection,
AccessTokenCipher accessTokenCipher) |
| Modifier and Type | Method and Description |
|---|---|
AccessToken |
create(String username,
String name) |
int |
deleteAllForUser(String username) |
AccessToken |
load(String token) |
List<AccessToken> |
loadAll(String username) |
AccessToken |
loadById(String id) |
String |
save(AccessToken accessToken) |
void |
touch(AccessToken accessToken) |
collection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, save, saveWithoutValidation, totalCount, totalCount, validate, validate, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, destroyAll, save, saveWithoutValidation, validate, validate, validate@Inject public AccessTokenServiceImpl(MongoConnection mongoConnection, AccessTokenCipher accessTokenCipher)
public AccessToken load(String token)
load in interface AccessTokenService@Nullable public AccessToken loadById(String id)
loadById in interface AccessTokenServicepublic List<AccessToken> loadAll(String username)
loadAll in interface AccessTokenServicepublic AccessToken create(String username, String name)
create in interface AccessTokenServicepublic void touch(AccessToken accessToken) throws ValidationException
touch in interface AccessTokenServiceValidationExceptionpublic String save(AccessToken accessToken) throws ValidationException
save in interface AccessTokenServiceValidationExceptionpublic int deleteAllForUser(String username)
deleteAllForUser in interface AccessTokenServiceCopyright © 2012–2021 Graylog, Inc.. All rights reserved.