CreateRestoreCredentialResponse


public final class CreateRestoreCredentialResponse extends CreateCredentialResponse


A response of the RestoreCredential flow.

Summary

Public constructors

CreateRestoreCredentialResponse(
    @NonNull String responseJson,
    @NonNull Bundle data
)

Public methods

static final @NonNull CreateRestoreCredentialResponse
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-alpha03
public CreateRestoreCredentialResponse(
    @NonNull String responseJson,
    @NonNull Bundle data
)

Public methods

createFrom

Added in 1.5.0-alpha03
public static final @NonNull CreateRestoreCredentialResponse createFrom(@NonNull Bundle data)

getResponseJson

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

the public key credential registration response in JSON format.