|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Token
A token issued by TokenService
.
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 TokenService
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
String getKey()
TokenService
will always return a Token
that is equal to the original
Token
issued for that key.
long getKeyCreationTime()
TokenService
to replace the original token.
String getExtendedInformation()
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |