SigningManager class

Constructors

SigningManager.initialize()
Generates a new key pair (public and secret) that will authenticate this device
SigningManager.initializeFromJwk(Map<String, dynamic> jwk)
Useful for loading a public key and a verifier for a third-party device RFC-7517 RFC example

Properties

hashCode int
The hash code for this object.
no setterinherited
initialized bool
getter/setter pair
keyPair ↔ KeyPair?
getter/setter pair
logger ↔ Logger
getter/setter pair
privateKey ↔ EcPrivateKeyImpl?
getter/setter pair
publicKey ↔ EcPublicKeyImpl?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedAlgorithm → AlgorithmIdentifier<ECDSASigner>
final
selectedCurve → Identifier
final
signer ↔ Signer<PrivateKey>?
getter/setter pair
verifier ↔ Verifier<PublicKey>?
getter/setter pair

Methods

convertPublicToJwk() String?
Converts only the public key to JWK format RFC-7517 RFC example
convertToJwk() String?
Converts key pair to JWK format RFC-7517 RFC example
getSignatureBytes(Uint8List bytesToSign) Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signMessage(Uint8List messageBytes) → Signature?
Signs a message with the private key (signer)
toString() String
A string representation of this object.
inherited
verifyMessage(Uint8List messageBytes, Uint8List signature) bool
Verifies the authenticity of a message with a given signature (public key)

Operators

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