Package com.mcawful

Class PanelSessionManager.Session

java.lang.Object
com.mcawful.PanelSessionManager.Session
Enclosing class:
PanelSessionManager

public static final class PanelSessionManager.Session extends Object
A panel login session. Immutable apart from being ended early.
  • Method Details

    • origin

      public String origin()
      Returns:
      the origin the user signed in on
    • isValid

      public boolean isValid()
      Returns:
      true if the session has neither expired nor been ended
    • getUser

      public PanelUser getUser()
      Looks up the user of this session
      Returns:
      the PanelUser; null if the user no longer exists or is disabled