RsaKeyPair class abstract
Opaque reference to RSA key pair.
The private key bytes of the key may not be in the memory. The private key bytes may not even be extractable. If the private key is in memory, it's an instance of RsaKeyPairData.
The public key is always RsaPublicKey.
This class is used with algorithms such as RsaPss and RsaSsaPkcs1v15.
There are many formats for storing RSA key parameters. If you are encoding/decoding JWK (JSON Web Key) format, use package:jwk.
- Inheritance
- Implementers
Constructors
- RsaKeyPair()
- RsaKeyPair.constructor()
- Constructor for subclasses
Properties
- hasBeenDestroyed → bool
-
Whether destroy has been called.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → void -
Overwrites sensitive parts of the private key data with zeroes and
prevents the private key from being used anymore.
inherited
-
extract(
) → Future< RsaKeyPairData> -
Reads the private key into memory.
override
-
extractPublicKey(
) → Future< RsaPublicKey> -
Reads the public key.
override
-
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