DVWebPushKeyPair class
An application server key pair — the sender's identity to the push service, and the ephemeral half of the key agreement.
Constructors
- DVWebPushKeyPair({required Uint8List publicKey, required Uint8List privateKey})
- DVWebPushKeyPair.fromPrivateKey(Uint8List privateKey)
-
Rebuilds the pair from a stored private scalar.
factory
- DVWebPushKeyPair.generate([Random? random])
-
A fresh key pair. Each message uses its own, which is what stops one
recovered key from opening every message ever sent.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- privateKey → Uint8List
-
P-256 private scalar (32 bytes).
final
- publicKey → Uint8List
-
Uncompressed P-256 public key (65 bytes).
final
- 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