VerificationResult class

Constructors

VerificationResult({required bool valid, required int errorCode, required String message, required int depth, required List<X509Certificate> chain, String? failingCertificate})
const

Properties

chain → List<X509Certificate>
Chain built by the verification, from the certificate up to the anchor. Empty when verification failed before a chain could be built.
final
depth → int
Depth at which the error happened: 0 is the certificate itself, 1 its issuer, and so on. -1 when there was no error.
final
errorCode → int
OpenSSL error code (X509_V_ERR_*), or X509_V_OK (0).
final
expired → bool
The certificate is outside its validity window.
no setter
failingCertificate → String?
Subject of the certificate where the error happened, when OpenSSL reports one.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
OpenSSL message for errorCode (X509_verify_cert_error_string).
final
revoked → bool
The certificate (or one in its chain) is revoked.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
untrusted → bool
No trust anchor could be reached.
no setter
valid → bool
true when OpenSSL accepted the chain (X509_V_OK).
final

Methods

dispose() → void
Releases the certificates of the returned chain.
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