com.atlassian.crowd.model.authentication
Interface Session

All Known Implementing Classes:
SessionEntity

public interface Session

A Session represents an authenticated, time-bound information exchange opportunity granted by a server to a client. It is created at a certain point in time, and eventually expires, although its expiry date can be renewed if the information exchange is alive.

Version:
2.6

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.
 

Method Detail

getToken

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.

Returns:
the identifier (key) of the token associated to the session.

getCreatedDate

Date getCreatedDate()
Returns:
the date when the session was created.

getExpiryDate

Date getExpiryDate()
Returns:
the current expiry date after which the session will no longer be valid.


Copyright © 2013 Atlassian. All Rights Reserved.