Class ActiveCookieStore
- java.lang.Object
-
- com.djrapitops.plan.delivery.webserver.auth.ActiveCookieStore
-
-
Field Summary
Fields Modifier and Type Field Description static long
cookieExpiresAfter
-
Constructor Summary
Constructors Constructor Description ActiveCookieStore(PlanConfig config, DBSystem dbSystem, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, Processing processing)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<User>
checkCookie(java.lang.String cookie)
void
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.java.lang.String
generateNewCookie(User user)
void
removeCookie(java.lang.String cookie)
static void
removeUserCookie(java.lang.String username)
-
-
-
Constructor Detail
-
ActiveCookieStore
@Inject public ActiveCookieStore(PlanConfig config, DBSystem dbSystem, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, Processing processing)
-
-
Method Detail
-
removeUserCookie
public static void removeUserCookie(java.lang.String username)
-
enable
public void enable()
Description copied from interface:SubSystem
Performs enable actions for the subsystem.
-
disable
public void disable()
Description copied from interface:SubSystem
Performs disable actions for the subsystem
-
checkCookie
public java.util.Optional<User> checkCookie(java.lang.String cookie)
-
generateNewCookie
public java.lang.String generateNewCookie(User user)
-
removeCookie
public void removeCookie(java.lang.String cookie)
-
-