NativeCertificate class
An implementation of X509Certificate which represents a certificate loaded from the platforms' native certificate store.
- Implemented types
Constructors
- NativeCertificate({required Uint8List der, required Uint8List sha1, required String subject, required String issuer, required DateTime startValidity, required DateTime endValidity})
- Creates a new instance of the NativeCertificate class.
Properties
- commonName → String?
-
Returns the Common Name (CN) extracted from the certificate's subject
Distinguished Name, or
nullif no CN is present.no setter - country → String?
-
Returns the Country (C) extracted from the certificate's subject
Distinguished Name, or
nullif no Country is present.no setter - der → Uint8List
-
The DER encoded bytes of the certificate.
no setteroverride
- endValidity → DateTime
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuer → String
-
no setteroverride
- organization → String?
-
Returns the Organization (O) extracted from the certificate's subject
Distinguished Name, or
nullif no Organization is present.no setter - pem → String
-
The PEM encoded String of the certificate.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sha1 → Uint8List
-
The SHA1 hash of the certificate.
no setteroverride
- startValidity → DateTime
-
no setteroverride
- subject → String
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited