CLASS
KeyPinning
Contents
- Methods
init(hostname:publicKeyHash:)
public final class KeyPinning: NSObject, Sendable
The configuration for MTLS that is used to pin the server public key for a defined hostname.
Methods
init(hostname:publicKeyHash:)
@objc public init(hostname: String, publicKeyHash: String)
Initialize a KeyPinning that is used to pin the server public key for a defined hostname.
- Parameters:
- hostname: The hostname.
- publicKeyHash: The public key hash for the
hostname.
Parameters
| Name | Description |
|---|---|
| hostname | The hostname. |
| publicKeyHash | The public key hash for the hostname. |