Class PersistentLoginManager
java.lang.Object
io.quarkus.vertx.http.runtime.security.PersistentLoginManager
A class that manages persistent logins.
This is done by encoding an expiry time, and the current username into an encrypted cookie
TODO: make this pluggable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPersistentLoginManager
(String encryptionKey, String cookieName, long timeoutMillis, long newCookieIntervalMillis, boolean httpOnlyCookie, String cookieSameSite, String cookiePath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear
(io.vertx.ext.web.RoutingContext ctx) restore
(io.vertx.ext.web.RoutingContext context) void
save
(io.quarkus.security.identity.SecurityIdentity identity, io.vertx.ext.web.RoutingContext context, PersistentLoginManager.RestoreResult restoreResult, boolean secureCookie) void
save
(String value, io.vertx.ext.web.RoutingContext context, String cookieName, PersistentLoginManager.RestoreResult restoreResult, boolean secureCookie)
-
Constructor Details
-
PersistentLoginManager
-
-
Method Details
-
restore
-
restore
public PersistentLoginManager.RestoreResult restore(io.vertx.ext.web.RoutingContext context, String cookieName) -
save
public void save(io.quarkus.security.identity.SecurityIdentity identity, io.vertx.ext.web.RoutingContext context, PersistentLoginManager.RestoreResult restoreResult, boolean secureCookie) -
save
public void save(String value, io.vertx.ext.web.RoutingContext context, String cookieName, PersistentLoginManager.RestoreResult restoreResult, boolean secureCookie) -
clear
public void clear(io.vertx.ext.web.RoutingContext ctx)
-