Constructor and Description |
---|
DefaultToken(String key,
long keyCreationTime,
String extendedInformation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getExtendedInformation()
Obtains the extended information associated within the token, which was presented
when the token was first created.
|
String |
getKey()
Obtains the randomised, secure key assigned to this token.
|
long |
getKeyCreationTime()
The time the token key was initially created is available from this method.
|
int |
hashCode() |
String |
toString() |
public String getKey()
Token
TokenService
will always return a Token
that is equal
to the original Token
issued for that key.public long getKeyCreationTime()
Token
TokenService
to replace the original token.getKeyCreationTime
in interface Token
Date.getTime()
.public String getExtendedInformation()
Token
getExtendedInformation
in interface Token