TlsUtil

object TlsUtil

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Returns an SSL client for this host's localhost address.

Link copied to clipboard
fun newKeyManager(keyStoreType: String?, heldCertificate: HeldCertificate?, vararg intermediates: X509Certificate): X509KeyManager

Returns a key manager for the held certificate and its chain. Returns an empty key manager if heldCertificate is null.

Link copied to clipboard
@IgnoreJRERequirement
fun newTrustManager(keyStoreType: String?, trustedCertificates: List<X509Certificate>, insecureHosts: List<String>): X509TrustManager

Returns a trust manager that trusts trustedCertificates.