Interface SessionService
- All Known Implementing Classes:
 CacheSessionService,CrestSessionService
public interface SessionService
The 
SessionService is responsible to perform interactions with AM sessions endpoint,
 such as session info or logout, etc.- 
Method Summary
Modifier and TypeMethodDescriptiongetSessionInfo(Context context, String ssoToken) Returns a promise that will be completed with an optionalSessionInfoor with anSessionExceptionin case of errors.Returns a promise that will be completed with aVoidor with anSessionExceptionin case of errors. 
- 
Method Details
- 
getSessionInfo
Returns a promise that will be completed with an optionalSessionInfoor with anSessionExceptionin case of errors. The optionalSessionInfowill be empty only when the givenssoTokenis invalid or expired.- Parameters:
 context- The request context.ssoToken- The ssoToken used to retrieve the session information about.- Returns:
 - a promise that will be completed with 
SessionInfoor with anSessionExceptionin case of errors. 
 - 
logout
Returns a promise that will be completed with aVoidor with anSessionExceptionin case of errors.- Parameters:
 context- The request context.ssoToken- The ssoToken to logout.- Returns:
 - a promise that will be completed with a 
Voidor with anSessionExceptionin case of errors. 
 
 -