Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.89 KB

File metadata and controls

30 lines (21 loc) · 1.89 KB

AuthenticatorAttestationResponse

Namespace: SpawnDev.SpawnJS.JSObjects
Inherits: AuthenticatorResponse
Source: JSObjects/AuthenticatorAttestationResponse.cs
MDN Reference: AuthenticatorAttestationResponse on MDN

The AuthenticatorAttestationResponse interface of the Web Authentication API is the result of a WebAuthn credential registration. It contains information about the credential that the server needs to perform WebAuthn assertions, such as its credential ID and public key. https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse

Constructors

Signature Description
AuthenticatorAttestationResponse(SpawnJSObjectReference _ref) Deserialization constructor

Properties

Property Type Access Description
AttestationObject ArrayBuffer get An ArrayBuffer containing authenticator data and an attestation statement for a new key pair generated by the authenticator.

Methods

Method Return Type Description
GetAuthenticatorData() ArrayBuffer Returns an ArrayBuffer containing the authenticator data contained within the AuthenticatorAttestationResponse.attestationObject property.
GetPublicKey() ArrayBuffer Returns an ArrayBuffer containing the DER SubjectPublicKeyInfo of the new credential (see Subject Public Key Info), or null if this is not available.
GetPublicKeyAlgorithm() int Returns a number that is equal to a COSE Algorithm Identifier, representing the cryptographic algorithm used for the new credential.
GetTransports() List<string> Returns an array of strings describing which transport methods (e.g., usb, nfc) are believed to be supported with the authenticator. The array may be empty if the information is not available.