X509Certificate class

Wrapper around OpenSSL X509 (Certificate).

Inheritance

Constructors

X509Certificate(Pointer<X509> ptr, OpenSSL _context)

Properties

crlDistributionPointUrls → List<String>
CRL distribution point URLs from CRL Distribution Points extension.
no setter
handle → Pointer<X509>
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
icpBrasilInfo → IcpBrasilInfo
Convenience getter for ICP-Brasil fields.
no setter
isNull → bool
Returns true if the underlying pointer is null.
no setterinherited
issuer → String
Gets the Issuer DN as a string.
no setter
notAfter → DateTime?
Valid NotAfter date (End Date).
no setter
notBefore → DateTime?
Valid NotBefore date (Start Date).
no setter
ocspUrls → List<String>
OCSP URLs from Authority Information Access (AIA).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serialNumber → String
Gets the Serial Number as a decimal string.
no setter
subject → String
Gets the Subject DN as a string (e.g. "C=BR, O=ICP-Brasil, ...").
no setter
version → int
Gets the version of the certificate. Returns 1 for V1, 3 for V3.
no setter

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
Manually dispose the native object. Note: The Finalizer must support detachment if we want to do this safely, but NativeFinalizer automatically handles detached objects if we passed detach: this.
override
extractIcpBrasilInfo() → IcpBrasilInfo
Extracts ICP-Brasil fields (name, CPF, birth date, policies) from the certificate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDer() → Uint8List
Exports Certificate to DER bytes.
toPem() → String
Exports Certificate to PEM format.
toString() → String
A string representation of this object.
inherited

Operators

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