CLASS

KeyPinning

Contents

public final class KeyPinning: NSObject, Sendable

A server public key pinned for one host: the base64 SHA-256 of the certificate's SubjectPublicKeyInfo.

Any certificate of the server's validated chain can be pinned, and several pins may share a host. How to compute a pin and which certificate to pin: the "Server pinning" section of the IdsvrHaapiDriver documentation.

Methods

init(hostname:publicKeyHash:)

@objc public init(hostname: String, publicKeyHash: String)

Creates a pin for one host.

Parameters

Name Description
hostname The host the pin applies to, matched without regard to letter case.
publicKeyHash The pin.