SSLSecurity

Undocumented

  • Undocumented

  • Use certs from main app bundle

    Declaration

    Swift

    public convenience init(usePublicKeys: Bool = false)

    Parameters

    usePublicKeys

    is to specific if the publicKeys or certificates should be used for SSL pinning validation

    Return Value

    a representation security object to be used with

  • Designated init

    Declaration

    Swift

    public init(certs: [SSLCert], usePublicKeys: Bool)

    Parameters

    certs

    is the certificates or public keys to use

    usePublicKeys

    is to specific if the publicKeys or certificates should be used for SSL pinning validation

    Return Value

    a representation security object to be used with

  • Valid the trust and domain name.

    Declaration

    Swift

    public func isValid(_ trust: SecTrust, domain: String?) -> Bool

    Parameters

    trust

    is the serverTrust to validate

    domain

    is the CN domain to validate

    Return Value

    if the key was successfully validated