|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.core.token.DefaultToken
public class DefaultToken
The default implementation of Token.
| Constructor Summary | |
|---|---|
DefaultToken(String key,
long keyCreationTime,
String extendedInformation)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultToken(String key,
long keyCreationTime,
String extendedInformation)
| Method Detail |
|---|
public String getKey()
TokenTokenService will always return a Token that is equal to the original
Token issued for that key.
getKey in interface Tokenpublic long getKeyCreationTime()
TokenTokenService to replace the original token.
getKeyCreationTime in interface Tokenpublic String getExtendedInformation()
Token
getExtendedInformation in interface Tokenpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||