VerificationMixin mixin
X.509 signature and chain verification (X509_verify_cert).
final result = openssl.verifyChain(
certificate: receivedCertificate,
anchors: [rootCa],
intermediates: [intermediateCa],
crls: [caCrl],
checkRevocation: true,
);
if (!result.valid) {
print('rejected: ${result.message} (depth ${result.depth})');
}
- Superclass constraints
- Mixin applications
Properties
- bindings → OpenSslFfi
-
Acesso aos bindings brutos gerados.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- loader → OpenSslBindings
-
Acesso ao loader/configuração (opcional, se precisarmos de caminhos).
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
lookup<
T extends Function> (String name) → Pointer< NativeFunction< T> > -
Helper para pegar endereços de funções (para NativeFinalizer).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyCertificateSignature(
X509Certificate certificate, X509Certificate issuer) → bool -
Verifies the signature of
certificateagainst the public key ofissuer. -
verifyChain(
{required X509Certificate certificate, required List< X509Certificate> anchors, List<X509Certificate> intermediates = const [], List<X509Crl> crls = const [], bool checkRevocation = false, bool checkRevocationChain = false, DateTime? verificationTime, bool ignoreValidity = false, bool partialChain = false, int? maxDepth}) → VerificationResult -
Verifies
certificateagainst the trustedanchors, optionally usingintermediatesto build the chain.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited