//okhttp/okhttp3/CertificatePinner/Pin
Pin¶
[jvm]\ class Pin(pattern: String, pin: String)
A hostname pattern and certificate hash for Certificate Pinning.
Constructors¶
| Pin | [jvm] fun Pin(pattern: String, pin: String) |
Functions¶
| Name | Summary |
|---|---|
| equals | [jvm] open operator override fun equals(other: Any?): Boolean |
| hashCode | [jvm] open override fun hashCode(): Int |
| matchesCertificate | [jvm] fun matchesCertificate(certificate: X509Certificate): Boolean |
| matchesHostname | [jvm] fun matchesHostname(hostname: String): Boolean |
| toString | [jvm] open override fun toString(): String |
Properties¶
| Name | Summary |
|---|---|
| hash | [jvm] val hash: ByteString The hash of the pinned certificate using hashAlgorithm. |
| hashAlgorithm | [jvm] val hashAlgorithm: String Either sha1 or sha256. |
| pattern | [jvm] val pattern: String A hostname like example.com or a pattern like *.example.com (canonical form). |