CertStore

interface CertStore

Inheritors

Functions

Link copied to clipboard
abstract fun clearUserDecisions()

Removes user (dis-)trust decisions for all certificates.

Link copied to clipboard
abstract fun isTrusted(chain: Array<X509Certificate>, authType: String, trustSystemCerts: Boolean, appInForeground: StateFlow<Boolean>?): Boolean

Determines whether a certificate chain is trusted.

Link copied to clipboard

Determines whether a certificate has been explicitly accepted by the user. In this case, we can ignore an invalid host name for that certificate.

Link copied to clipboard
abstract fun setTrustedByUser(cert: X509Certificate)

Sets this certificate as trusted.

Link copied to clipboard

Sets this certificate as untrusted.