类 TokenWrapper
java.lang.Object
org.coodex.concrete.core.token.TokenWrapper
- 所有已实现的接口:
Serializable,Token
基于当前线程上下文提供Session Token
TODO: 考虑到需要支持servlet 3.0和其他需要异步的i/o提供者,需要支持异步获取会话
上述内容无需由TokenWrapper考虑,应有I/O服务提供者层提供
Created by davidoff shen on 2016-09-05.
- 另请参阅:
-
嵌套类概要
从接口继承的嵌套类/接口 org.coodex.concrete.common.Token
Token.Event -
字段概要
从接口继承的字段 org.coodex.concrete.common.Token
CONCRETE_TOKEN_ID_KEY -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明longcreated()Account<?>voidflush()<T> TgetAttribute(String key, Class<T> clz) static Tokenstatic TokenvoidbooleanbooleanisValid()static TokennewToken()voidremoveAttribute(String key) voidrenew()voidsetAccount(Account<?> account) voidsetAccountCredible(boolean credible) voidsetAttribute(String key, Serializable attribute) toString()
-
构造器详细资料
-
TokenWrapper
public TokenWrapper()
-
-
方法详细资料
-
getInstance
-
getToken
-
newToken
-
toString
-
renew
public void renew() -
created
public long created() -
isValid
public boolean isValid() -
invalidate
public void invalidate()- 指定者:
invalidate在接口中Token
-
currentAccount
- 指定者:
currentAccount在接口中Token
-
setAccount
- 指定者:
setAccount在接口中Token
-
isAccountCredible
public boolean isAccountCredible()- 指定者:
isAccountCredible在接口中Token
-
setAccountCredible
public void setAccountCredible(boolean credible) - 指定者:
setAccountCredible在接口中Token
-
getTokenId
- 指定者:
getTokenId在接口中Token
-
getAttribute
- 指定者:
getAttribute在接口中Token
-
setAttribute
- 指定者:
setAttribute在接口中Token
-
removeAttribute
- 指定者:
removeAttribute在接口中Token
-
attributeNames
- 指定者:
attributeNames在接口中Token
-
flush
public void flush()
-