ProviderCreateCredentialRequest


public final 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(
    @NonNull CreateCredentialRequest callingRequest,
    @NonNull CallingAppInfo callingAppInfo,
    BiometricPromptResult biometricPromptResult
)

constructs an instance of ProviderCreateCredentialRequest

Public methods

final 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

final @NonNull CallingAppInfo

information pertaining to the calling app making the request

final @NonNull CreateCredentialRequest

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

Public constructors

ProviderCreateCredentialRequest

Added in 1.5.0-alpha02
public ProviderCreateCredentialRequest(
    @NonNull CreateCredentialRequest callingRequest,
    @NonNull CallingAppInfo callingAppInfo,
    BiometricPromptResult biometricPromptResult
)

constructs an instance of ProviderCreateCredentialRequest

Public methods

getBiometricPromptResult

Added in 1.5.0-alpha02
public final BiometricPromptResult getBiometricPromptResult()

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

getCallingAppInfo

Added in 1.2.0
public final @NonNull CallingAppInfo getCallingAppInfo()

information pertaining to the calling app making the request

getCallingRequest

Added in 1.2.0
public final @NonNull CreateCredentialRequest getCallingRequest()

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