Class SessionEntity

java.lang.Object
com.atlassian.crowd.integration.rest.entity.SessionEntity
All Implemented Interfaces:
Session

public class SessionEntity extends Object implements Session
  • Constructor Details

  • Method Details

    • getToken

      public String getToken()
      Description copied from interface: Session
      A session has an associated token that is granted by the server, and which can be presented by the client to identify the session.
      Specified by:
      getToken in interface Session
      Returns:
      the identifier (key) of the token associated to the session.
    • getUser

      public UserEntity getUser()
      Specified by:
      getUser in interface Session
      Returns:
      user that the session belongs to
    • getCreatedDate

      public Date getCreatedDate()
      Specified by:
      getCreatedDate in interface Session
      Returns:
      the date when the session was created.
    • getExpiryDate

      public Date getExpiryDate()
      Specified by:
      getExpiryDate in interface Session
      Returns:
      the current expiry date after which the session will no longer be valid.
    • getUnaliasedUsername

      @Nullable public String getUnaliasedUsername()
      If this user has been aliased Crowd may also provide the original unaliased name.
      Returns:
      the original username, or null
      Since:
      2.6.2