RsassaPkcs1V15PublicKey class Null safety

RSASSA-PKCS1-v1_5 public key for signing messages.

An RsassaPkcs1V15PublicKey instance hold a public RSA key for verification of signatures following the RSASSA-PKCS1-v1_5 scheme as specified in RFC 3447.

Instances of RsassaPkcs1V15PublicKey can be imported using RsassaPkcs1V15PublicKey.importSpkiKey or generated using RsassaPkcs1V15PrivateKey.generateKey which generates a public-private key-pair.

Annotations
  • @sealed

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

exportJsonWebKey() Future<Map<String, dynamic>>
Export RSASSA-PKCS1-v1_5 public key in JWK format.
exportSpkiKey() Future<Uint8List>
Export this RSASSA-PKCS1-v1_5 private key in SPKI format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verifyBytes(List<int> signature, List<int> data) Future<bool>
Verify signature of data using this RSASSA-PKCS1-v1_5 public key.
verifyStream(List<int> signature, Stream<List<int>> data) Future<bool>
Verify signature of data using this RSASSA-PKCS1-v1_5 public key.

Operators

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

Static Methods

importJsonWebKey(Map<String, dynamic> jwk, Hash hash) Future<RsassaPkcs1V15PublicKey>
Import RSASSA-PKCS1-v1_5 public key in JWK format.
importSpkiKey(List<int> keyData, Hash hash) Future<RsassaPkcs1V15PublicKey>
Import RSASSA-PKCS1-v1_5 public key in SPKI format.