Class CookieSessionStore
java.lang.Object
io.vertx.mutiny.ext.web.sstore.cookie.CookieSessionStore
- All Implemented Interfaces:
MutinyDelegate
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 Mutiny-ified interface.
- Author:
- Paulo Lopes
- See Also:
-
CookieSessionStore
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCookieSessionStore(io.vertx.ext.web.sstore.cookie.CookieSessionStore delegate) Create a new instance ofCookieSessionStoredelegating to the given (non-null) instance ofCookieSessionStore.CookieSessionStore(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic CookieSessionStoreCreates a CookieSessionStore.static CookieSessionStoreDeprecated.booleanio.vertx.ext.web.sstore.cookie.CookieSessionStoreGet the delegate instance.inthashCode()static CookieSessionStorenewInstance(io.vertx.ext.web.sstore.cookie.CookieSessionStore delegate) Creates a new instance of theCookieSessionStore.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
CookieSessionStore
public CookieSessionStore(io.vertx.ext.web.sstore.cookie.CookieSessionStore delegate) Create a new instance ofCookieSessionStoredelegating to the given (non-null) instance ofCookieSessionStore. -
CookieSessionStore
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.sstore.cookie.CookieSessionStore getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
@Deprecated public static CookieSessionStore create(Vertx vertx, String secret, io.vertx.core.buffer.Buffer salt) Deprecated.usecreate(Vertx, String)Creates a CookieSessionStore. This factory method is deprecated and will be removed in a future version. The salt value is ignored and should not be used. This was an artifact of the original implementation which used a different encryption scheme.- 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
public static CookieSessionStore newInstance(io.vertx.ext.web.sstore.cookie.CookieSessionStore delegate) Creates a new instance of theCookieSessionStore. -
hashCode
public int hashCode() -
equals
-
toString
-
create(Vertx, String)Creates a CookieSessionStore.