CoreCryptoCentral

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun addPkiTrustAnchors(pemBundle: CertificateChain)

Adds every certificate from pemBundle that is not already installed. Existing trust anchors are never removed.

Link copied to clipboard
abstract suspend fun checkCredentials()

Check all installed X509 credentials for expiration and revocation.

Link copied to clipboard
abstract suspend fun close()

Close Core Crypto, its PKI environment, and its database.

Link copied to clipboard
abstract suspend fun configurePkiEnvironment(hooks: PkiEnvironmentHooks)

Creates and installs a PKI environment backed by the same encrypted database as Core Crypto.

Link copied to clipboard
abstract suspend fun exportDatabaseCopy(destinationPath: String)

Export a compacted copy of the CoreCrypto database to the specified destination path. Uses SQLite's VACUUM INTO to create an encrypted copy of the database.

Link copied to clipboard
abstract suspend fun getPkiTrustAnchors(): List<CertificateChain>
Link copied to clipboard
abstract suspend fun installCredential(credential: CryptoCredential): CryptoCredentialRef

Persists credential without taking ownership of it.

Link copied to clipboard
abstract suspend fun mlsClient(clientId: CryptoQualifiedClientId, defaultCipherSuite: MLSCiphersuite, mlsTransporter: MLSTransporter, epochObserver: MLSEpochObserver, coroutineScope: <Error class: unknown class>): MLSClient
Link copied to clipboard
abstract suspend fun proteusClient(): ProteusClient
Link copied to clipboard
abstract suspend fun startX509CredentialAcquisition(config: X509CredentialAcquisitionConfig, existingCredentialRef: CryptoCredentialRef? = null): CryptoCredential

Starts an X509 acquisition and keeps it alive while PkiEnvironmentHooks.authenticate performs authentication. existingCredentialRef remains valid after this call.