ListenerCertificateAuthenticator

@available(macOS 10.12, iOS 10.0, *)
public class ListenerCertificateAuthenticator : _ListenerAuthenticator

ENTERPRISE EDITION ONLY.

Certificate Authenticator for the URLEndpointListener.

  • Initialize with the root certificates to trust when verifying client certificates

    Declaration

    Swift

    public init(rootCerts: [SecCertificate])
  • Initialize with the authenticator closure for verifying client certificates

    Declaration

    Swift

    public init(authenticator: @escaping (_ certs: [SecCertificate]) -> Bool)