@NotThreadSafe public final class AuthToken extends Object implements IAuthToken
IAuthToken interface.| Constructor and Description |
|---|
AuthToken(IAuthIdentification aIdentification,
int nExpirationSeconds) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.joda.time.DateTime |
getCreationDate() |
String |
getID() |
IAuthIdentification |
getIdentification() |
org.joda.time.DateTime |
getLastAccessDate() |
int |
hashCode() |
boolean |
isExpired()
Check if the token is expired.
|
String |
toString() |
public AuthToken(@Nonnull IAuthIdentification aIdentification, @Nonnegative int nExpirationSeconds)
@Nonnull public String getID()
getID in interface com.helger.commons.id.IHasID<String>getID in interface IAuthTokennull.@Nonnull public IAuthIdentification getIdentification()
getIdentification in interface IAuthTokennull.@Nonnull public org.joda.time.DateTime getCreationDate()
getCreationDate in interface IAuthTokennull.@Nonnull public org.joda.time.DateTime getLastAccessDate()
getLastAccessDate in interface IAuthTokennull.public boolean isExpired()
IAuthTokenisExpired in interface IAuthTokentrue if the token is already expired.Copyright © 2014–2015 Philip Helger. All rights reserved.