X509Certificate class
Wrapper around OpenSSL X509 (Certificate).
Constructors
-
X509Certificate(Pointer<
X509> ptr, OpenSSL _context)
Properties
-
certificatePolicyOids
→ List<
String> -
Policy OIDs of the Certificate Policies extension (2.5.29.32).
no setter
-
crlDistributionPointUrls
→ List<
String> -
CRL distribution point URLs from CRL Distribution Points extension.
no setter
-
dnsNames
→ List<
String> -
dNSName entries of the Subject Alternative Name extension (2.5.29.17).
no setter
-
emailAddresses
→ List<
String> -
rfc822Name (e-mail) entries of the Subject Alternative Name 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
-
ipAddresses
→ List<
String> -
iPAddress entries of the Subject Alternative Name extension, as text.
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
- publicKey → EvpPkey
-
Public key of the certificate.
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
- serialNumberBigInt → BigInt
-
Serial number as a BigInt, handy for matching CRL entries.
no setter
- subject → String
-
Gets the Subject DN as a string (e.g. "C=BR, O=ICP-Brasil, ...").
no setter
-
subjectAltNameOtherNames
→ Map<
String, String> -
otherName entries of the Subject Alternative Name extension, keyed by
OID. ICP-Brasil certificates carry their person and company data here;
icpBrasilInfo parses those into typed fields.
no setter
-
subjectAltNameUris
→ List<
String> -
uniformResourceIdentifier entries of the Subject Alternative Name
extension. This is the SAN, not the CRL distribution points — those are
crlDistributionPointUrls.
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
finalizercallsfreeFuncon_ptrwhen 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/CNPJ, 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