pki library

Classes

AbstractKeystore
Abstract base class for keystores.
BksKeyEntry
Represents a key entry in a BKS keystore.
BksKeyStore
BKS (Bouncy Castle KeyStore) parser.
BksSealedKeyEntry
Represents a sealed (encrypted) key entry in a BKS keystore.
BksSecretEntry
Represents a secret value entry in a BKS keystore. This stores arbitrary pre-protected data.
BksTrustedCertEntry
Represents a trusted certificate entry in a BKS keystore.
IcpBrasilCertificateLoader
Loads ICP-Brasil certificates from JKS and BKS keystores.
InMemoryPkiBytesSource
Fonte de bytes em memória útil para testes e ambiente web sem filesystem.
JksKeyStore
A class representing a Java KeyStore (JKS).
JksPrivateKeyEntry
KeystoreEntry
Represents an entry in a keystore.
OcspEntryStatus
Helper for OCSP status.
Pkcs12Bundle
Pkcs12Decoder
PkiBuilder
A builder for creating X.509 certificates and PKI chains (Root, Intermediate, Leaf).
PkiBytesSource
Abstrai leitura de bytes para permitir uso em VM e navegador.
PkiOtherName
PkiPemUtils
Utilities to export PKI material (DER/keys) into PEM.
PkiUtils
Utilities for cryptographic operations and random data.
PrivateKeyEntry
Represents a private key entry.
RevokedCertificate
Represents a revoked certificate entry for CRL generation.
RSAPrivateKey
RSAPublicKey
TrustedCertEntry
Represents a trusted certificate entry.
X509Certificate
X509Extension
X509Name
X509NameAttribute

Constants

bksEntryTypeCertificate → const int
BKS entry type constants.
bksEntryTypeKey → const int
bksEntryTypeSealed → const int
bksEntryTypeSecret → const int
bksKeyTypePrivate → const int
BKS key type constants.
bksKeyTypePublic → const int
bksKeyTypeSecret → const int

Properties

defaultPkcs12Decoder Pkcs12Decoder
final

Functions

createDefaultPkiBytesSource() PkiBytesSource
decodePkcs12(Uint8List bytes, {required String password, Pkcs12Decoder? decoder}) Future<Pkcs12Bundle>
fixedTimeEqual(Uint8List a, Uint8List b) bool
utf16BeEncode(String s) Uint8List
Helper: UTF-16BE encoding

Exceptions / Errors

BadKeystoreFormatException
Exception thrown when keystore format is invalid.
DecryptionFailureException
Exception thrown when decryption fails.
DuplicateAliasException
Exception thrown when duplicate alias is found.
KeystoreException
Exception thrown when a keystore parsing operation fails.
KeystoreSignatureException
Exception thrown when keystore signature verification fails.
UnsupportedKeystoreVersionException
Exception thrown when keystore version is unsupported.