Skip to content

//okhttp-tls/okhttp3.tls

Package okhttp3.tls

Types

Name Summary
HandshakeCertificates [jvm]
class HandshakeCertificates
Certificates to identify which peers to trust and also to earn the trust of those peers in kind. Client and server exchange these certificates during the handshake phase of a TLS connection.
HeldCertificate [jvm]
class HeldCertificate(val keyPair: KeyPair, val certificate: X509Certificate)
A certificate and its private key. These are some properties of certificates that are used with TLS:

Functions

Name Summary
certificatePem [jvm]
fun X509Certificate.certificatePem(): String
Returns the certificate encoded in PEM format.
decodeCertificatePem [jvm]
fun String.decodeCertificatePem(): X509Certificate
Decodes a multiline string that contains a certificate which is rfc_7468. A typical input string looks like this: