类 TokenProxy
java.lang.Object
org.coodex.concrete.core.token.TokenProxy
- 所有已实现的接口:
Serializable,Token
Token的代理,当被代理的token为空或者无效时,进行set操作会创建token;
token为空时,getTokenId也为空
- 另请参阅:
-
嵌套类概要
从接口继承的嵌套类/接口 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) voidbooleanbooleanisValid()static TokenvoidremoveAttribute(String key) voidrenew()voidsetAccount(Account<?> account) voidsetAccountCredible(boolean credible) voidsetAttribute(String key, Serializable attribute)
-
方法详细资料
-
proxy
-
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() -
renew
public void renew()
-