public class TokenWrapper extends Object implements Token
Token.EventCONCRETE_TOKEN_ID_KEY| Constructor and Description |
|---|
TokenWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Enumeration<String> |
attributeNames() |
long |
created() |
<ID extends AccountID> |
currentAccount() |
void |
flush() |
<T> T |
getAttribute(String key)
Deprecated.
|
<T> T |
getAttribute(String key,
Class<T> clz) |
static Token |
getInstance() |
String |
getTokenId() |
void |
invalidate() |
boolean |
isAccountCredible() |
boolean |
isValid() |
void |
removeAttribute(String key) |
void |
renew() |
void |
setAccount(Account account) |
void |
setAccountCredible(boolean credible) |
void |
setAttribute(String key,
Serializable attribute) |
public static final Token getInstance()
public void invalidate()
invalidate in interface Tokenpublic <ID extends AccountID> Account<ID> currentAccount()
currentAccount in interface Tokenpublic void setAccount(Account account)
setAccount in interface Tokenpublic boolean isAccountCredible()
isAccountCredible in interface Tokenpublic void setAccountCredible(boolean credible)
setAccountCredible in interface Tokenpublic String getTokenId()
getTokenId in interface Token@Deprecated public <T> T getAttribute(String key)
getAttribute in interface Tokenpublic <T> T getAttribute(String key, Class<T> clz)
getAttribute in interface Tokenpublic void setAttribute(String key, Serializable attribute)
setAttribute in interface Tokenpublic void removeAttribute(String key)
removeAttribute in interface Tokenpublic Enumeration<String> attributeNames()
attributeNames in interface TokenCopyright © 2018. All rights reserved.