public interface IAuthToken extends com.helger.commons.id.IHasID<String>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
EXPIRATION_SECONDS_INFINITE
The value indicating, that a token never expires
|
| Modifier and Type | Method and Description |
|---|---|
LocalDateTime |
getCreationDate() |
LocalDateTime |
getExpirationDate()
Get the date time when this token will expire.
|
int |
getExpirationSeconds() |
String |
getID() |
IAuthIdentification |
getIdentification() |
LocalDateTime |
getLastAccessDate() |
boolean |
isExpirationPossible()
Check if this token can expire (expiration seconds > 0) or not
(expiration seconds = 0).
|
boolean |
isExpired()
Check if the token is expired.
|
static final int EXPIRATION_SECONDS_INFINITE
@Nonnull String getID()
getID in interface com.helger.commons.id.IHasID<String>null.@Nonnull IAuthIdentification getIdentification()
null.@Nonnull LocalDateTime getCreationDate()
null.@Nonnull LocalDateTime getLastAccessDate()
null.@Nonnegative int getExpirationSeconds()
isExpirationPossible()boolean isExpirationPossible()
true if this token can expire, false
otherwise.getExpirationSeconds()@Nullable LocalDateTime getExpirationDate()
null if this token
cannot expire.isExpirationPossible()boolean isExpired()
true if the token is already expired,
false if the token is still valid.Copyright © 2016–2019 Philip Helger. All rights reserved.