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
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