EvpPkey class

Wrapper around OpenSSL EVP_PKEY (Private/Public Key).

Inheritance

Constructors

EvpPkey(Pointer<EVP_PKEY> ptr, OpenSSL _context)

Properties

handle → Pointer<EVP_PKEY>
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isNull → bool
Returns true if the underlying pointer is null.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachFinalizer(NativeFinalizer finalizer, Pointer<Void> token, {int? externalSize}) → void
Attaches this Dart object to the native pointer so that finalizer calls freeFunc on _ptr when this object is GC'd.
inherited
dispose() → void
Releases the underlying EVP_PKEY structure.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPrivateKeyPem({String? password}) → String
Exports Private Key to PEM format.
toPublicJwk({String? keyId, String? algorithm, String? use}) → Map<String, Object?>
Exports the public half of an RSA key as a JSON Web Key (RFC 7517).
toPublicKeyDer() → Uint8List
Exports the public key as DER (SubjectPublicKeyInfo).
toPublicKeyPem() → String
Exports Public Key to PEM format (SubjectPublicKeyInfo).
toString() → String
A string representation of this object.
inherited

Operators

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