# SSLSecurity

Undocumented

- `validatedDN`

  Undocumented

- `init(usePublicKeys:)`

  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

- `init(certs:usePublicKeys:)`

  Designated init

  #### Declaration

  Swift

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

  #### Parameters

  `keys` | 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

- `isValid(_:domain:)`

  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

© 2017 . All rights reserved. (Last updated: 2017-06-08)

Generated by jazzy ♪♫ v0.7.4, a Realm project.