Package | Description |
---|---|
com.salesforce.androidsdk.auth | |
com.salesforce.androidsdk.rest |
Modifier and Type | Field and Description |
---|---|
static HttpAccess |
HttpAccess.DEFAULT |
Modifier and Type | Method and Description |
---|---|
static OAuth2.IdServiceResponse |
OAuth2.callIdentityService(HttpAccess httpAccessor,
java.lang.String identityServiceIdUrl,
java.lang.String authToken)
Calls the identity service to determine the username of the user and the mobile policy, given
their identity service ID and an access token.
|
static OAuth2.TokenEndpointResponse |
OAuth2.exchangeCode(HttpAccess httpAccessor,
java.net.URI loginServer,
java.lang.String clientId,
java.lang.String code,
java.lang.String codeVerifier,
java.lang.String callbackUrl)
Exchange code for credentials.
|
static OAuth2.TokenEndpointResponse |
OAuth2.refreshAuthToken(HttpAccess httpAccessor,
java.net.URI loginServer,
java.lang.String clientId,
java.lang.String refreshToken,
java.util.Map<java.lang.String,java.lang.String> addlParams)
Gets a new auth token using the refresh token.
|
static void |
OAuth2.revokeRefreshToken(HttpAccess httpAccessor,
java.net.URI loginServer,
java.lang.String refreshToken)
Deprecated.
Will be removed in 13.0. Use
OAuth2.revokeRefreshToken(HttpAccess, URI, String, LogoutReason) instead. |
static void |
OAuth2.revokeRefreshToken(HttpAccess httpAccessor,
java.net.URI loginServer,
java.lang.String refreshToken,
OAuth2.LogoutReason reason)
Revokes the existing refresh token.
|
static OAuth2.TokenEndpointResponse |
OAuth2.swapJWTForTokens(HttpAccess httpAccessor,
java.net.URI loginServerUrl,
java.lang.String jwt)
Swaps a JWT for regular OAuth tokens.
|
Constructor and Description |
---|
RestClient(RestClient.ClientInfo clientInfo,
java.lang.String authToken,
HttpAccess httpAccessor,
RestClient.AuthTokenProvider authTokenProvider)
Constructs a RestClient with the given clientInfo, authToken, httpAccessor and authTokenProvider.
|