AuthenticatorAssertionResponse

  • AuthenticatorAssertionResponse contains cryptographic signatures for proof of possession and user consent.

  • This class is used to deserialize from and serialize to bytes using deserializeFromBytes and serializeToBytes methods respectively.

  • Several methods are available to retrieve data such as getAuthenticatorData, getClientDataJSON, getSignature, and getUserHandle.

  • The getKeyHandle methods are deprecated and should be replaced with PublicKeyCredential.getRawId().

public class AuthenticatorAssertionResponse extends AuthenticatorResponse

This structure contains cryptographic signatures produced by scoped credentials that provides proof of possession of a private key as well as evidence of user consent to a specific transaction.

See Web Authentication Assertion

Inherited Constant Summary

Public Method Summary

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

Inherited Method Summary

Public Methods

public static AuthenticatorAssertionResponse deserializeFromBytes (byte[] serializedBytes)

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

Returns

public boolean equals (Object obj)

public byte[] getAuthenticatorData ()

public ByteString getAuthenticatorDataAsByteString ()

public byte[] getClientDataJSON ()

public ByteString getClientDataJSONAsByteString ()

public byte[] getKeyHandle ()

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

public ByteString getKeyHandleAsByteString ()

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

public byte[] getSignature ()

public ByteString getSignatureAsByteString ()

public byte[] getUserHandle ()

public ByteString getUserHandleAsByteString ()

public int hashCode ()

public byte[] serializeToBytes ()

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

Returns
  • the serialized byte array.

public String toString ()

public void writeToParcel (Parcel dest, int flags)