public interface Token extends Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
disable()
disable the token but not revoke the token (when the user access the
protected resource with the disabled token , it will tell user the token
is disabled, in another words, the user is kicked off )
|
Date |
getExpiredDate() |
Date |
getLatestTime() |
User |
getOwner() |
String |
getToken() |
boolean |
isEnabled() |
void |
updateExpiredDate(long timeout) |
String getToken()
User getOwner()
Date getExpiredDate()
Date getLatestTime()
boolean isEnabled()
void disable()
void updateExpiredDate(long timeout)
timeout - update the expired time if user accessed the protected
resource , always add the max live duration based on current
timestampCopyright © 2016. All rights reserved.