CoseServerKey class final

A key the server's responses verify with, pinned at enrolment.

Constructors

CoseServerKey.ed25519(Uint8List publicKey)
An Ed25519 public key (32 bytes).
factory
CoseServerKey.hmac(CoseAlg alg, Uint8List secret)
The shared secret of a COSE_Mac0 server, for alg (an HMAC algorithm); throws ArgumentError otherwise.
factory
CoseServerKey.p256Sec1(Uint8List sec1)
A P-256 public key, SEC1 encoded (compressed or uncompressed), for ESP256.
factory

Properties

alg → CoseAlg
The one algorithm this key verifies.
final
bytes → Uint8List
The key material: a public key, a SEC1 point or a secret.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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