KeyPairData class abstract
Extracted data of a KeyPair.
The main types are:
- EcKeyPairData (Ecdsa, Ecdh)
- SimpleKeyPairData (Ed25519, X25519)
- RsaKeyPairData (RSA-based algorithms)
- Inheritance
- Implementers
Constructors
-
KeyPairData({required KeyPairType<
KeyPairData, PublicKey> type})
Properties
- hasBeenDestroyed → bool
-
Whether destroy has been called.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- publicKey → PublicKey
-
Public key.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
type
→ KeyPairType<
KeyPairData, PublicKey> -
Type of the key pair.
final
Methods
-
copy(
) → KeyPairData - Copies the private key.
-
destroy(
) → void -
Overwrites sensitive parts of the private key data with zeroes and
prevents the private key from being used anymore.
inherited
-
extract(
) → Future< KeyPairData> -
Reads the private key into memory.
override
-
extractPublicKey(
) → Future< PublicKey> -
Reads the public key.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited