okhttp / okhttp3 / CertificatePinner / Builder / add

add

fun add(pattern:String, vararg pins:String): Builder

Pins certificates for pattern.

Parameters

pattern - lower-case host name or wildcard pattern such as *.example.com.

pins - SHA-256 or SHA-1 hashes. Each pin is a hash of a certificate’s Subject Public Key Info, base64-encoded and prefixed with either sha256/ or sha1/.