AI-generated Key Takeaways
-
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 byPublicKeyCredential.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.
Represents a newly-created scoped credential, aka the response from a registration request.
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 |
hashCode()
|
| byte[] |
serializeToBytes()
Serializes the
AuthenticatorAttestationResponse to bytes.
|
| String |
toString()
|
| 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
- The deserialized
AuthenticatorAttestationResponse.
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.