Package io.vertx.ext.web.sstore.cookie
Interface CookieSessionStore
-
- All Superinterfaces:
SessionStore
public interface CookieSessionStore extends SessionStore
A SessionStore that uses a Cookie to store the session data. All data is stored in encrypted form usingAES-256 with AES/CBC/PKCS5Padding
.- Author:
- Paulo Lopes
-
-
Field Summary
-
Fields inherited from interface io.vertx.ext.web.sstore.SessionStore
DEFAULT_SESSIONID_LENGTH
-
-
Method Summary
Static Methods Modifier and Type Method Description static CookieSessionStore
create(Vertx vertx, String secret, Buffer salt)
Creates a CookieSessionStore.-
Methods inherited from interface io.vertx.ext.web.sstore.SessionStore
clear, close, createSession, createSession, delete, get, init, put, retryTimeout, size
-
-
-
-
Method Detail
-
create
static CookieSessionStore create(Vertx vertx, String secret, Buffer salt)
Creates a CookieSessionStore. Cookie data will be encrypted using the given secret and salt. The secret as the name reflects, should never leave the server, otherwise user agents could tamper with the payload. The salt adds an extra later of security and should be a random.- Parameters:
vertx
- a vert.x instancesecret
- a secret to derive a secure private keysalt
- a binary salt used in the key derivation- Returns:
- the store
-
-