CreateRestoreCredentialResponse


public final class CreateRestoreCredentialResponse extends CreateCredentialResponse


A response of the RestoreCredential flow.

Summary

Public constructors

Constructs a CreateRestoreCredentialResponse.

Public methods

final @NonNull String

the public key credential registration response in JSON format.

Inherited methods

From androidx.credentials.CreateCredentialResponse
final @NonNull Bundle

the response data in the Bundle format

final @NonNull String

the credential type determined by the credential-type-specific subclass (e.g. the type for CreatePasswordResponse is PasswordCredential.TYPE_PASSWORD_CREDENTIAL and for CreatePublicKeyCredentialResponse is PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)

Constants

BUNDLE_KEY_CREATE_RESTORE_CREDENTIAL_RESPONSE

public static final @NonNull String BUNDLE_KEY_CREATE_RESTORE_CREDENTIAL_RESPONSE

Public constructors

CreateRestoreCredentialResponse

Added in 1.5.0-beta01
public CreateRestoreCredentialResponse(@NonNull String responseJson)

Constructs a CreateRestoreCredentialResponse.

Throws
kotlin.IllegalArgumentException

If responseJson is empty, or an invalid JSON

Public methods

getResponseJson

Added in 1.5.0-beta01
public final @NonNull String getResponseJson()

the public key credential registration response in JSON format.