CoreCryptoCentralImpl

class CoreCryptoCentralImpl(cc: <Error class: unknown class>, rootDir: String, database: <Error class: unknown class>) : CoreCryptoCentral

Constructors

Link copied to clipboard
constructor(cc: <Error class: unknown class>, rootDir: String, database: <Error class: unknown class>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun addPkiIntermediateCertificate(pem: CertificateChain): <Error class: unknown class>
Link copied to clipboard
open suspend override fun addPkiTrustAnchors(pemBundle: CertificateChain): <Error class: unknown class>

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

Link copied to clipboard
open suspend override fun checkCredentials(): <Error class: unknown class>

Check all installed X509 credentials for expiration and revocation.

Link copied to clipboard
open suspend override fun close(): <Error class: unknown class>

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

Link copied to clipboard
open suspend override fun configurePkiEnvironment(hooks: PkiEnvironmentHooks): <Error class: unknown class>

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

Link copied to clipboard
open suspend override 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
open suspend override fun getPkiTrustAnchors(): List<CertificateChain>
Link copied to clipboard
open suspend override fun installCredential(credential: CryptoCredential): CryptoCredentialRef

Persists credential without taking ownership of it.

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

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

Link copied to clipboard
suspend fun <T> transaction(name: String, block: suspend (<Error class: unknown class>) -> T): T