ProviderGetCredentialRequest


public final class ProviderGetCredentialRequest


Request received by the provider after the query phase of the get flow is complete i.e. the user was presented with a list of credentials, and the user has now made a selection from the list of CredentialEntry presented on the selector UI.

This request will be added to the intent extras of the activity invoked by the PendingIntent set on the CredentialEntry that the user selected. The request must be extracted using the PendingIntentHandler.retrieveProviderGetCredentialRequest helper API.

Summary

Public constructors

ProviderGetCredentialRequest(
    @NonNull List<@NonNull CredentialOption> credentialOptions,
    @NonNull CallingAppInfo callingAppInfo
)

constructs an instance of ProviderGetCredentialRequest

Public methods

final @NonNull CallingAppInfo

information pertaining to the calling application

final @NonNull List<@NonNull CredentialOption>

the list of credential retrieval options containing the required parameters, expected to contain a single CredentialOption when this request is retrieved from the android.app.Activity invoked by the android.app.PendingIntent set on a PasswordCredentialEntry or a PublicKeyCredentialEntry, or expected to contain multiple CredentialOption when this request is retrieved from the android.app.Activity invoked by the android.app.PendingIntent set on a RemoteEntry

Public constructors

ProviderGetCredentialRequest

public ProviderGetCredentialRequest(
    @NonNull List<@NonNull CredentialOption> credentialOptions,
    @NonNull CallingAppInfo callingAppInfo
)

constructs an instance of ProviderGetCredentialRequest

Parameters
@NonNull List<@NonNull CredentialOption> credentialOptions

the list of credential retrieval options containing the required parameters, expected to contain a single CredentialOption when this request is retrieved from the android.app.Activity invoked by the android.app.PendingIntent set on a PasswordCredentialEntry or a PublicKeyCredentialEntry, or expected to contain multiple CredentialOption when this request is retrieved from the android.app.Activity invoked by the android.app.PendingIntent set on a RemoteEntry

@NonNull CallingAppInfo callingAppInfo

information pertaining to the calling application

Note : Credential providers are not expected to utilize the constructor in this class for any production flow. This constructor must only be used for testing purposes.

Public methods

getCallingAppInfo

Added in 1.2.0
public final @NonNull CallingAppInfo getCallingAppInfo()

information pertaining to the calling application

Note : Credential providers are not expected to utilize the constructor in this class for any production flow. This constructor must only be used for testing purposes.

getCredentialOptions

Added in 1.2.0
public final @NonNull List<@NonNull CredentialOptiongetCredentialOptions()

the list of credential retrieval options containing the required parameters, expected to contain a single CredentialOption when this request is retrieved from the android.app.Activity invoked by the android.app.PendingIntent set on a PasswordCredentialEntry or a PublicKeyCredentialEntry, or expected to contain multiple CredentialOption when this request is retrieved from the android.app.Activity invoked by the android.app.PendingIntent set on a RemoteEntry