MakeCredentialRequest class
CTAP2 authenticatorMakeCredential (0x01) request (spec §6.1).
Requests generation of a new credential bound to an RP and user. Several fields mirror WebAuthn makeCredential parameters.
- Annotations
-
- @JsonSerializable(createFactory: false, explicitToJson: true)
Constructors
-
MakeCredentialRequest.new({required List<
int> clientDataHash, required PublicKeyCredentialRpEntity rp, required PublicKeyCredentialUserEntity user, required List<Map< pubKeyCredParams, List<String, dynamic> >PublicKeyCredentialDescriptor> ? excludeList, Map<String, dynamic> ? extensions, Map<String, bool> ? options, List<int> ? pinAuth, int? pinProtocol, bool? enterpriseAttestation})
Properties
-
clientDataHash
→ List<
int> -
Hash of serialized client data per WebAuthn.
final
- enterpriseAttestation → bool?
-
Request enterprise attestation behavior if supported.
final
-
excludeList
→ List<
PublicKeyCredentialDescriptor> ? -
Prevent duplicates by listing existing credentials for the account.
final
-
extensions
→ Map<
String, dynamic> ? -
Extension inputs to influence authenticator operation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
options
→ Map<
String, bool> ? -
Additional boolean options (rk/up/uv) for operation.
final
-
pinAuth
→ List<
int> ? -
Result of authenticate(pinUvAuthToken, clientDataHash), if present.
final
- pinProtocol → int?
-
PIN/UV protocol version selected by the platform.
final
-
pubKeyCredParams
→ List<
Map< String, dynamic> > -
Preferred algorithms for credential generation (ordered, no duplicates).
final
- rp → PublicKeyCredentialRpEntity
-
Relying Party entity to associate with the credential.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → PublicKeyCredentialUserEntity
-
User entity to associate with the credential.
final
Methods
-
encode(
) → List< int> - Encodes this request as a CBOR map and prefixes the command byte.
-
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
Constants
- clientDataHashIdx → const int
- enterpriseAttestationIdx → const int
- excludeListIdx → const int
- extensionsIdx → const int
- optionsIdx → const int
- pinAuthIdx → const int
- pinProtocolIdx → const int
- pubKeyCredParamsIdx → const int
- rpIdx → const int
- userIdx → const int