public interface SessionService
SessionService
is responsible to perform interactions with AM sessions endpoint,
such as session info or logout, etc.Modifier and Type | Method and Description |
---|---|
Promise<Optional<SessionInfo>,SessionException> |
getSessionInfo(Context context,
String ssoToken)
Returns a promise that will be completed with an optional
SessionInfo or with an SessionException
in case of errors. |
Promise<Void,SessionException> |
logout(Context context,
String ssoToken)
Returns a promise that will be completed with a
Void or with an SessionException in case
of errors. |
Promise<Optional<SessionInfo>,SessionException> getSessionInfo(Context context, String ssoToken)
SessionInfo
or with an SessionException
in case of errors. The optional SessionInfo
will be empty only when the given ssoToken
is
invalid or expired.context
- The request context.ssoToken
- The ssoToken used to retrieve the session information about.SessionInfo
or with an SessionException
in case
of errors.Promise<Void,SessionException> logout(Context context, String ssoToken)
Void
or with an SessionException
in case
of errors.context
- The request context.ssoToken
- The ssoToken to logout.Void
or with an SessionException
in case
of errors.Copyright 2011-2017 ForgeRock AS.