com.atlassian.crowd.integration.rest.entity
Class SessionEntity

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

public class SessionEntity
extends Object
implements Session


Constructor Summary
SessionEntity(String token, UserEntity user, Date createdDate, Date expiryDate)
           
 
Method Summary
 Date getCreatedDate()
           
 Date getExpiryDate()
           
 String getToken()
          A session has an associated token that is granted by the server, and which can be presented by the client to identify the session.
 String getUnaliasedUsername()
          If this user has been aliased Crowd may also provide the original unaliased name.
 UserEntity getUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionEntity

public SessionEntity(String token,
                     UserEntity user,
                     Date createdDate,
                     Date expiryDate)
Method Detail

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()

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


Copyright © 2013 Atlassian. All Rights Reserved.