PkiMixin mixin
PKI utilities for production-grade operations.
- 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
-
certMatchesIssuer(
{Uint8List? childAki, Uint8List? issuerSki, Uint8List? issuerSerialBytes, String? issuerNameHash}) → bool - Pre-filter for issuer candidates based on AKI/SKI + serial/name hints.
-
extractAkiSki(
Pointer< X509> cert) → ({Uint8List? aki, String issuerNameHash, Uint8List serialBytes, Uint8List? ski}) - Parses AKI/SKI + issuer matching material from certificate.
-
fingerprintSha256(
Uint8List data) → String - SHA-256 fingerprint in lowercase hexadecimal.
-
generateSerialNumberBigInt(
{int bytes = 16}) → BigInt - Generates a cryptographically strong random serial number.
-
getCachedCrl(
String key) → Uint8List? - Optional CRL cache with TTL to avoid mass re-fetch.
-
getCachedOcsp(
String key) → Uint8List? - Optional OCSP cache with TTL to avoid mass re-fetch.
-
getOrCreateParsedX509(
Uint8List der) → Pointer< X509> - Returns cached parsed certificate pointer keyed by DER fingerprint.
-
getOrCreateStore(
String storeKey, List< Uint8List> rootsDer) → X509Store - Returns a cached X509_STORE for a truststore fingerprint key.
-
issuerSerialKey(
{required Uint8List issuerSerialBytes, required String issuerNameHash}) → String - Stable key for maps/indexes keyed by issuer name hash + serial bytes.
-
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
-
prefilterIssuerCandidates<
T> ({required List< T> candidates, required bool matches(T candidate)}) → List<T> - Applies binary pre-filter and falls back to full set on failure/ambiguity.
-
putCachedCrl(
String key, Uint8List value, {Duration ttl = const Duration(minutes: 15)}) → void - Optional CRL cache with TTL to avoid mass re-fetch.
-
putCachedOcsp(
String key, Uint8List value, {Duration ttl = const Duration(minutes: 5)}) → void - Optional OCSP cache with TTL to avoid mass re-fetch.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited