PublicKeyCredential class final

An Ed25519 public-key credential: the client proves possession of the private key by signing the connection challenge.

Inheritance

Constructors

PublicKeyCredential({required String principal, required String publicKeyBase64, required String signatureBase64})
Creates a public-key credential for principal.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
principal String
The claimed principal identifier (the login name).
finalinherited
publicKeyBase64 String
The presented public key, base64-encoded.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signatureBase64 String
The Ed25519 signature over the connection challenge, base64-encoded.
final

Methods

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

Operators

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

Static Methods

challengeFor(String nonceBase64) Uint8List
The challenge bytes a verifier must check the signature against. Set by the connection handler from the per-connection nonce it issued; not sent on the wire by the client.