CreatePublicKeyCredentialResponse


public final class CreatePublicKeyCredentialResponse extends CreateCredentialResponse


A response of a public key credential (passkey) flow.

Summary

Public constructors

CreatePublicKeyCredentialResponse(
    @NonNull String registrationResponseJson
)

Constructs a CreatePublicKeyCredentialResponse.

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)

Public constructors

CreatePublicKeyCredentialResponse

Added in 1.2.0
public CreatePublicKeyCredentialResponse(
    @NonNull String registrationResponseJson
)

Constructs a CreatePublicKeyCredentialResponse.

Parameters
@NonNull String registrationResponseJson

the public key credential registration response in JSON format

Public methods

getRegistrationResponseJson

Added in 1.2.0
public final @NonNull String getRegistrationResponseJson()

the public key credential registration response in JSON format