Builder

data class Builder(pinnedCertificates: MutableList<PinnedCertificate>, validateTrust: Boolean)

Builds a configured CertificatePinner.

Constructors

Link copied to clipboard
fun Builder(pinnedCertificates: MutableList<PinnedCertificate> = mutableListOf(), validateTrust: Boolean = true)

Functions

Link copied to clipboard
fun add(pattern: String, vararg pins: String): CertificatePinner.Builder

Pins certificates for pattern.

Link copied to clipboard
fun build(): CertificatePinner

Build into a CertificatePinner

Link copied to clipboard
fun validateTrust(validateTrust: Boolean): CertificatePinner.Builder

Whether to valid the trust of the server https://developer.apple.com/documentation/security/2980705-sectrustevaluatewitherror