public class LiAuthRestClient
extends java.lang.Object
Constructor and Description |
---|
LiAuthRestClient() |
Modifier and Type | Method and Description |
---|---|
void |
accessTokenAsync(android.content.Context context,
LiSSOTokenRequest ssoTokenRequest,
LiAuthAsyncRequestCallback callback)
Makes Asyn call to fetch Tokens.
|
void |
authorizeAsync(android.content.Context context,
LiSSOAuthorizationRequest ssoAuthorizationRequest,
LiAuthAsyncRequestCallback callback)
Makes async call to fetch Auth Code.
|
void |
refreshTokenAsync(android.content.Context context,
LiRefreshTokenRequest refreshTokenRequest,
LiAuthAsyncRequestCallback callback)
Makes Async call to fetch fresh Access token from Refresh Token.
|
LiBaseResponse |
refreshTokenSync(android.content.Context context,
LiRefreshTokenRequest refreshTokenRequest)
Makes Sync call to fetch fresh Access token from Refresh Token.
|
public void authorizeAsync(android.content.Context context, LiSSOAuthorizationRequest ssoAuthorizationRequest, LiAuthAsyncRequestCallback callback) throws LiRestResponseException
ssoAuthorizationRequest
- LiSSOAuthorizationRequest
callback
- LiAuthAsyncRequestCallback
LiRestResponseException
- LiRestResponseException
public void accessTokenAsync(android.content.Context context, LiSSOTokenRequest ssoTokenRequest, LiAuthAsyncRequestCallback callback) throws LiRestResponseException
ssoTokenRequest
- LiSSOTokenRequest
callback
- LiAuthAsyncRequestCallback
LiRestResponseException
- LiRestResponseException
public void refreshTokenAsync(android.content.Context context, LiRefreshTokenRequest refreshTokenRequest, LiAuthAsyncRequestCallback callback) throws LiRestResponseException
refreshTokenRequest
- LiRefreshTokenRequest
callback
- LiAuthAsyncRequestCallback
LiRestResponseException
- LiRestResponseException
public LiBaseResponse refreshTokenSync(android.content.Context context, LiRefreshTokenRequest refreshTokenRequest) throws LiRestResponseException
refreshTokenRequest
- LiRefreshTokenRequest
LiBaseResponse
LiRestResponseException
- LiRestResponseException