AuthenticatorData class

A structured representation of the authenticatorData buffer returned by an authenticator.

It provides a safe way to parse and access the different fields of the authenticator data.

Annotations
  • @JsonSerializable.new(createFactory: false, explicitToJson: true)

Constructors

AuthenticatorData({required Uint8List rpIdHash, required int flags, required int signCount, AttestedCredentialData? attestedCredentialData, CborMap? extensions})

Properties

attestedCredentialData AttestedCredentialData?
The attested credential data, if present.
final
extensions → CborMap?
Authenticator extension outputs, if present.
final
flags int
The flags byte.
final
hasAttestedCredentialData bool
Attested Credential Data included flag (bit 6).
no setter
hasExtensions bool
Extension data included flag (bit 7).
no setter
hashCode int
The hash code for this object.
no setterinherited
rpIdHash Uint8List
The SHA-256 hash of the RP ID.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signCount int
The signature counter.
final
userPresent bool
User Present flag (bit 0).
no setter
userVerified bool
User Verified flag (bit 2).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(Uint8List authDataBytes) AuthenticatorData
Parses the raw authenticator data buffer into a structured object.