Class ActiveCookieStore

  • All Implemented Interfaces:
    SubSystem

    @Singleton
    public class ActiveCookieStore
    extends java.lang.Object
    implements SubSystem
    • Field Detail

      • cookieExpiresAfter

        public static long cookieExpiresAfter
    • 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.
        Specified by:
        enable in interface SubSystem
      • disable

        public void disable()
        Description copied from interface: SubSystem
        Performs disable actions for the subsystem
        Specified by:
        disable in interface 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)