BeginCreatePasswordCredentialRequest


class BeginCreatePasswordCredentialRequest : BeginCreateCredentialRequest


Request to begin saving a password credential, received by the provider with a CredentialProviderBaseService.onBeginCreateCredentialRequest call.

This request will not contain all parameters needed to store the password. Provider must use the initial parameters to determine if the password can be stored, and return a BeginGetCredentialResponse containing a list of CreateEntry, denoting the accounts/groups where the password can be stored. When user selects one of the returned CreateEntry, the corresponding PendingIntent set on the CreateEntry will be fired. The Intent invoked through the PendingIntent will contain the complete CreatePasswordRequest as part of its extras, to be retrieved by passing the intent to PendingIntentHandler.retrieveProviderCreateCredentialRequest. This request will contain all required parameters needed to actually store the password.

See also
BeginCreateCredentialRequest

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.

Summary

Public constructors

BeginCreatePasswordCredentialRequest(
    callingAppInfo: CallingAppInfo?,
    candidateQueryData: Bundle
)

constructs an instance of BeginCreatePasswordCredentialRequest

Public constructors

BeginCreatePasswordCredentialRequest

Added in 1.2.0
BeginCreatePasswordCredentialRequest(
    callingAppInfo: CallingAppInfo?,
    candidateQueryData: Bundle
)

constructs an instance of BeginCreatePasswordCredentialRequest

Parameters
callingAppInfo: CallingAppInfo?

the information associated with the requesting for the credentials

candidateQueryData: Bundle

the bundle containing raw key-value pairs coming from the app requesting the credentials, mostly to be ignored for a password request, and only to be used if the credential provider knows of some custom attributes being provided by a particular calling app