Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

AuthRequestResponse Class

This class contains authorization request response data.

Namespace

AuthRequestResponse Constructors

The following are constructors for AuthRequestResponse.

AuthRequestResponse(accessToken, contextRecordId, authProviderName)

Creates a new instance of the RichMessaging.AuthRequestResponse class.

Signature

public AuthRequestResponse(String accessToken, String contextRecordId, String authProviderName)

Parameters

  • accessToken: Type: String The authorization access token.
  • contextRecordId: Type: String The context record ID.
  • authProviderName: Type: String The provider name.

AuthRequestResponse Methods

The following are methods for AuthRequestResponse.

getAccessToken()

Gets the authorization access token.

Signature

public String getAccessToken()

Return Value

Type: String

The access token.

getAuthProviderName()

Get the authorization provider name.

Signature

public String getAuthProviderName()

Return Value

Type: String

The authorization provider name.

getContextRecordId()

Gets the context record ID.

Signature

public String getContextRecordId()

Return Value

Type: String

The context record ID.