@ThreadSafe public final class AuthTokenRegistry extends Object
| Modifier and Type | Method and Description |
|---|---|
static IAuthToken |
createToken(IAuthIdentification aIdentification,
int nExpirationSeconds) |
static com.helger.commons.collection.impl.ICommonsList<IAuthToken> |
getAllTokensOfSubject(IAuthSubject aSubject)
Get all tokens of the specified auth subject.
|
static IAuthToken |
getValidToken(String sTokenID) |
static int |
removeAllTokensOfSubject(IAuthSubject aSubject)
Remove all tokens of the given subject
|
static com.helger.commons.state.ESuccess |
removeToken(String sTokenID) |
static IAuthToken |
validateTokenAndUpdateLastAccess(String sTokenID) |
@Nonnull public static IAuthToken createToken(@Nonnull IAuthIdentification aIdentification, @Nonnegative int nExpirationSeconds)
@Nonnull public static com.helger.commons.state.ESuccess removeToken(@Nonnull String sTokenID)
@Nullable public static IAuthToken getValidToken(@Nullable String sTokenID)
@Nullable public static IAuthToken validateTokenAndUpdateLastAccess(@Nullable String sTokenID)
@Nonnull public static com.helger.commons.collection.impl.ICommonsList<IAuthToken> getAllTokensOfSubject(@Nonnull IAuthSubject aSubject)
aSubject - The subject to query. May not be null.null.@Nonnegative public static int removeAllTokensOfSubject(@Nonnull IAuthSubject aSubject)
aSubject - The subject for which the tokens should be removed.Copyright © 2016–2021 Philip Helger. All rights reserved.