ExternalKeyPairDelegate class abstract base Replication Enterprise Edition
KeyPair delegate that implements cryptographic operations without having to expose the underlying private key.
See also:
- KeyPair.fromExternal for creating a KeyPair that uses this delegate.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- keySizeInBits → int
-
The size of this key in bits (e.g. 2048 or 4096).
no setter
- keySizeInBytes → int
-
The size of this key in bytes, derived from keySizeInBits.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decrypt(
Uint8List data) → Future< Uint8List?> - Must decrypt the input data using the private key, applying the RSA algorithm with PKCS#1 v1.5 padding.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publicKeyData(
) → Future< DerData?> -
Must return the public key in ASN.1 DER
SubjectPublicKeyInfostructure. -
sign(
SignatureDigestAlgorithm? algorithm, Uint8List data) → Future< Uint8List?> - Must generate a signature for the input data using the private key, applying the RSA algorithm with PKCS#1 v1.5 padding.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited