Class SessionInformation

java.lang.Object
com.codename1.backend.security.SessionInformation

public final class SessionInformation extends Object
One signed-in session a SessionRegistry knows of, as Spring Security's class of the same name describes it.
  • Method Details

    • getPrincipal

      public String getPrincipal()
      The name the user signed in as.
    • getSessionId

      public String getSessionId()
      The session's id. Secret: never log it.
    • getLastRequest

      public long getLastRequest()
      When the session last served a request, in milliseconds since the epoch.
    • isExpired

      public boolean isExpired()
    • expireNow

      public void expireNow()
      Marks the session expired: its next request is signed out.