X509Name class

Wrapper around OpenSSL X509_NAME. Represents the Subject or Issuer of a certificate.

This wrapper supports both owned and borrowed pointers. If isOwned is true, the native pointer is freed when this object is GC'd or dispose is called. If isOwned is false (e.g. returned by X509_get_subject_name), the pointer is NOT freed.

Inheritance

Constructors

X509Name(Pointer<X509_NAME> ptr, OpenSSL _context, {bool isOwned = false})

Properties

handle → Pointer<X509_NAME>
no setteroverride
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

addEntry(String field, String value) → void
Adds a text entry to the name. field is the short name (e.g., "CN", "O", "C", "OU"). value is the value.
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
Explicitly disposes the native resource if it is owned. After calling this, using the object is invalid.
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