Package httpserver.session
Interface TokenSessionStore<T>
- All Superinterfaces:
SessionStore<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddeleteSession(HttpServerExchange exchange) default booleanexistsSession(HttpServerExchange exchange) default TfromSessionValue(String sessionValue) default TgetSession(HttpServerExchange exchange) default TgetSession(HttpServerExchange exchange, T defaultValue) byte[]sessionFromJson(String json) byte[]sessionToJson(T session, Charset charset) default voidsetSession(HttpServerExchange exchange, T session) Methods inherited from interface httpserver.session.SessionStore
sessionCookieConfiguration, sessionCookieName
-
Method Details
-
getSessionValidationKey
byte[] getSessionValidationKey() -
setSession
- Specified by:
setSessionin interfaceSessionStore<T>
-
existsSession
- Specified by:
existsSessionin interfaceSessionStore<T>
-
getSession
- Specified by:
getSessionin interfaceSessionStore<T>- Throws:
IOException
-
getSession
- Specified by:
getSessionin interfaceSessionStore<T>- Throws:
IOException
-
deleteSession
- Specified by:
deleteSessionin interfaceSessionStore<T>
-
sessionToJson
-
sessionFromJson
-
fromSessionValue
- Throws:
Forbidden
-