public class JwtSessionState extends SessionStateBase
_domain, _expiry, ctx
限定符 | 构造器和说明 |
---|---|
protected |
JwtSessionState(Context ctx) |
限定符和类型 | 方法和说明 |
---|---|
long |
creationTime()
创建时间
|
protected java.lang.String |
jwtGet() |
protected void |
jwtSet(java.lang.String token) |
long |
lastAccessTime()
最后访问时间
|
boolean |
replaceable()
是否可替换
|
java.lang.String |
sessionChangeId()
变更SESSION_ID
|
void |
sessionClear()
清除SESSION状态
|
<T> T |
sessionGet(java.lang.String key,
java.lang.Class<T> clz)
获取SESSION状态(指定类型)
|
java.lang.String |
sessionId()
获取SESSION_ID
|
java.util.Collection<java.lang.String> |
sessionKeys()
获取SESSION键名集合
|
protected io.jsonwebtoken.Claims |
sessionMap() |
void |
sessionPublish()
发布SESSION状态(类似jwt)
|
void |
sessionRefresh()
刷新SESSION状态(可续时)
|
void |
sessionRemove(java.lang.String key)
移除SESSION状态
|
void |
sessionReset()
会话重置(清空数据,并变更会话ID)
|
void |
sessionSet(java.lang.String key,
java.lang.Object val)
设置SESSION状态
|
java.lang.String |
sessionToken()
获取会话令牌(如: solon-web-sessionstate-jwt 插件支持)
|
cookieGet, cookieSet, sessionIdGet, sessionIdPush
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sessionGet
protected JwtSessionState(Context ctx)
public boolean replaceable()
SessionState
public long creationTime()
SessionState
public long lastAccessTime()
SessionState
public java.lang.String sessionId()
SessionState
public java.lang.String sessionChangeId()
SessionState
public java.util.Collection<java.lang.String> sessionKeys()
SessionState
protected io.jsonwebtoken.Claims sessionMap()
public <T> T sessionGet(java.lang.String key, java.lang.Class<T> clz)
SessionState
public void sessionSet(java.lang.String key, java.lang.Object val)
SessionState
public void sessionRemove(java.lang.String key)
SessionState
public void sessionClear()
SessionState
public void sessionReset()
SessionState
public void sessionRefresh()
SessionState
public void sessionPublish()
SessionState
public java.lang.String sessionToken()
SessionState
protected java.lang.String jwtGet()
protected void jwtSet(java.lang.String token)