OHSSLConfig

Objective-C


@interface OHSSLConfig : NSObject

Swift

class MySQLSSLConfig : NSObject

This class is used for establishing secure connections using SSL.

  • key

    The path name to the key file.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *key;

    Swift

    var key: String? { get }
  • The path name to the certificate file.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *certPath;

    Swift

    var certPath: String? { get }
  • The path name to the certificate authority file.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *certAuthPath;

    Swift

    var certAuthPath: String? { get }
  • The path name to a directory that contains trusted SSL CA certificates in PEM format.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *certAuthPEMPath;

    Swift

    var certAuthPEMPath: String? { get }
  • A list of permissible ciphers to use for SSL encryption.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *cipher;

    Swift

    var cipher: String? { get }
  • Initializes and returns a newly allocated SSL config object with the specified parameters.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithKey:(nullable NSString *)key
                               certPath:(nullable NSString *)certPath
                           certAuthPath:(nullable NSString *)certAuthPath
                        certAuthPEMPath:(nullable NSString *)certAuthPEMPath
                                 cipher:(nullable NSString *)cipher;

    Swift

    init(key: String?, certPath: String?, certAuthPath: String?, certAuthPEMPath: String?, cipher: String?)