public interface Token
It is important that the keys assigned to tokens are sufficiently randomised and secured that
they can serve as identifying a unique user session. Implementations of
are free to use encryption or encoding strategies of their choice. It is strongly recommended that
keys are of sufficient length to balance safety against persistence cost. In relation to persistence
cost, it is strongly recommended that returned keys are small enough for encoding in a cookie.
|Modifier and Type||Method and Description|
Obtains the extended information associated within the token, which was presented when the token was first created.
Obtains the randomised, secure key assigned to this token.
The time the token key was initially created is available from this method.
TokenServicewill always return a
Tokenthat is equal to the original
Tokenissued for that key.
TokenServiceto replace the original token.