ProviderCreateCredentialRequest


class ProviderCreateCredentialRequest


Final request received by the provider after the user has selected a given CreateEntry on the UI.

This request contains the actual request coming from the calling app, and the application information associated with the calling app.

Throws
kotlin.NullPointerException

If callingRequest, or callingAppInfo is null

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

ProviderCreateCredentialRequest(
    callingRequest: CreateCredentialRequest,
    callingAppInfo: CallingAppInfo,
    biometricPromptResult: BiometricPromptResult?
)

constructs an instance of ProviderCreateCredentialRequest

Public properties

BiometricPromptResult?

the result of a Biometric Prompt authentication flow, that is propagated to the provider if the provider requested for androidx.credentials.CredentialManager to handle the authentication flow

CallingAppInfo

information pertaining to the calling app making the request

CreateCredentialRequest

the complete CreateCredentialRequest coming from the calling app that is requesting for credential creation

Public constructors

ProviderCreateCredentialRequest

Added in 1.5.0-alpha02
ProviderCreateCredentialRequest(
    callingRequest: CreateCredentialRequest,
    callingAppInfo: CallingAppInfo,
    biometricPromptResult: BiometricPromptResult? = null
)

constructs an instance of ProviderCreateCredentialRequest

Public properties

biometricPromptResult

Added in 1.5.0-alpha02
val biometricPromptResultBiometricPromptResult?

the result of a Biometric Prompt authentication flow, that is propagated to the provider if the provider requested for androidx.credentials.CredentialManager to handle the authentication flow

callingAppInfo

Added in 1.2.0
val callingAppInfoCallingAppInfo

information pertaining to the calling app making the request

callingRequest

Added in 1.2.0
val callingRequestCreateCredentialRequest

the complete CreateCredentialRequest coming from the calling app that is requesting for credential creation