AuthenticatorAttestationResponse

  • AuthenticatorAttestationResponse represents the response from a registration request, also known as a newly-created scoped credential.

  • It includes methods to get the attestation object, client data, and transports.

  • The method getKeyHandle() is deprecated and should be replaced by PublicKeyCredential.getRawId().

  • This class provides methods to serialize and deserialize the response to and from bytes.

  • It also includes standard methods like equals, hashCode, toString, and methods inherited from Parcelable.

public class AuthenticatorAttestationResponse extends AuthenticatorResponse

Represents a newly-created scoped credential, aka the response from a registration request.

See Information About Public Key Credential

Inherited Constant Summary

Public Method Summary

static AuthenticatorAttestationResponse
deserializeFromBytes(byte[] serializedBytes)
De-serializes the AuthenticatorAttestationResponse from bytes, reversing serializeToBytes().
boolean
byte[]
ByteString
byte[]
ByteString
byte[]
getKeyHandle()
This method is deprecated. use PublicKeyCredential.getRawId() instead
ByteString
String[]
int
byte[]
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Public Methods

public static AuthenticatorAttestationResponse deserializeFromBytes (byte[] serializedBytes)

De-serializes the AuthenticatorAttestationResponse from bytes, reversing serializeToBytes().

Returns

public boolean equals (Object obj)

public byte[] getAttestationObject ()

public ByteString getAttestationObjectAsByteString ()

public byte[] getClientDataJSON ()

public ByteString getClientDataJSONAsByteString ()

public byte[] getKeyHandle ()

This method is deprecated.
use PublicKeyCredential.getRawId() instead

public ByteString getKeyHandleAsByteString ()

public String[] getTransports ()

public int hashCode ()

public byte[] serializeToBytes ()

Serializes the AuthenticatorAttestationResponse to bytes. Use deserializeFromBytes(byte[]) to deserialize.

Returns
  • the serialized byte array.

public String toString ()

public void writeToParcel (Parcel dest, int flags)