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()
           
 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()
Specified by:
getToken in interface Session

getUser

public UserEntity getUser()

getCreatedDate

public Date getCreatedDate()
Specified by:
getCreatedDate in interface Session

getExpiryDate

public Date getExpiryDate()
Specified by:
getExpiryDate in interface Session

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 © 2014 Atlassian. All Rights Reserved.