//okhttp/okhttp3/CertificatePinner/Companion/pin
pin¶
[jvm]\
fun pin(certificate: Certificate): String
Returns the SHA-256 of certificate
‘s public key.
In OkHttp 3.1.2 and earlier, this returned a SHA-1 hash of the public key. Both types are supported, but SHA-256 is preferred.