@ThreadSafe public final class AuthTokenRegistry extends com.helger.commons.scope.singleton.AbstractGlobalSingleton
| Constructor and Description |
|---|
AuthTokenRegistry()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
IAuthToken |
createToken(IAuthIdentification aIdentification,
int nExpirationSeconds) |
com.helger.commons.collection.ext.ICommonsList<? extends IAuthToken> |
getAllTokensOfSubject(IAuthSubject aSubject)
Get all tokens of the specified auth subject.
|
static AuthTokenRegistry |
getInstance() |
IAuthToken |
getValidToken(String sTokenID) |
int |
removeAllTokensOfSubject(IAuthSubject aSubject)
Remove all tokens of the given subject
|
com.helger.commons.state.ESuccess |
removeToken(String sTokenID) |
IAuthToken |
validateTokenAndUpdateLastAccess(String sTokenID) |
getAllGlobalSingletons, getGlobalSingleton, getGlobalSingletonIfInstantiated, isGlobalSingletonInstantiatedgetAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInPreDestruction, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onBeforeDestroy, onBeforeScopeDestruction, onDestroy, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInPreDestruction, setInstantiated, toString, writeAbstractSingletonFields@Deprecated @UsedViaReflection public AuthTokenRegistry()
@Nonnull public static AuthTokenRegistry getInstance()
@Nonnull public IAuthToken createToken(@Nonnull IAuthIdentification aIdentification, @Nonnegative int nExpirationSeconds)
@Nullable public IAuthToken getValidToken(@Nullable String sTokenID)
@Nullable public IAuthToken validateTokenAndUpdateLastAccess(@Nullable String sTokenID)
@Nonnull public com.helger.commons.collection.ext.ICommonsList<? extends IAuthToken> getAllTokensOfSubject(@Nonnull IAuthSubject aSubject)
aSubject - The subject to query. May not be null.null.@Nonnegative public int removeAllTokensOfSubject(@Nonnull IAuthSubject aSubject)
aSubject - The subject for which the tokens should be removed.Copyright © 2014–2017 Philip Helger. All rights reserved.