add

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

Pins certificates for pattern.

Return

The Builder so calls can be chained

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/.