Class CookieSessionStore
java.lang.Object
io.vertx.reactivex.ext.web.sstore.SessionStore
io.vertx.reactivex.ext.web.sstore.cookie.CookieSessionStore
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
A SessionStore that uses a Cookie to store the session data. All data is stored in
encrypted form using
AES-256 with AES/GCM/NoPadding.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<CookieSessionStore> static final intDefault length for a session id. -
Constructor Summary
ConstructorsConstructorDescriptionCookieSessionStore(CookieSessionStore delegate) CookieSessionStore(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic CookieSessionStoreCreates a CookieSessionStore.static CookieSessionStoreDeprecated.booleaninthashCode()static CookieSessionStoretoString()Methods inherited from class SessionStore
clear, close, create, create, createSession, createSession, delete, get, init, newInstance, put, retryTimeout, rxClear, rxDelete, rxGet, rxPut, rxSize, size
-
Field Details
-
__TYPE_ARG
-
DEFAULT_SESSIONID_LENGTH
public static final int DEFAULT_SESSIONID_LENGTHDefault length for a session id. More info: https://www.owasp.org/index.php/Session_Management_Cheat_Sheet- See Also:
-
-
Constructor Details
-
CookieSessionStore
-
CookieSessionStore
-
-
Method Details
-
toString
- Overrides:
toStringin classSessionStore
-
equals
- Overrides:
equalsin classSessionStore
-
hashCode
public int hashCode()- Overrides:
hashCodein classSessionStore
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classSessionStore
-
create
Deprecated.- Parameters:
vertx- a vert.x instancesecret- a secret to derive a secure private keysalt- ignored- Returns:
- the store
-
create
Creates a CookieSessionStore. Cookie data will be encrypted using the given secret. The secret as the name reflects, should never leave the server, otherwise user agents could tamper with the payload. The choice of GCM, ensures that no (IV, Key) is reusable, which means that there is no need for a salt. Also encrypting the same session multiple times will render different outputs, which prevents rainbow attacks.- Parameters:
vertx- a vert.x instancesecret- a secret to derive a secure private key- Returns:
- the store
-
newInstance
-