Builder
public class Builder
Used to build TMGClientConfiguration object.
Version
Version 1.0Since
Since 1.0-
TMG Server Url.
Declaration
Swift
public var serverUrl: String -
The certificate used for Public key generation during communication with TMG Server.
Declaration
Swift
public var serverCertificate: Data? -
Key identifier. It is a 32 byte
HexString.Declaration
Swift
public var serverKeyId: String -
The
SHA-256hashes of server root certificate’s Subject Public Key Info and base64-encoded, prefixed with eitherSHA-256. It is a 22 byteHexString.Declaration
Swift
@available(*, deprecated, message: "certificatePins value is ignored.") public var certificatePins: String -
Warning
Certificate pinning is handled internally within the SDK; therefore, thecertificatePinsparameter is ignored.Initializing the tmgUrl, certificate, key identifier and certificate pins for Builder
Declaration
Swift
@available(*, deprecated, message: "Please use the new initializer. certificatePins value is ignored.") public convenience init(serverUrl: String, serverCertificate: Data?, serverKeyId: String, certificatePins: String)Parameters
serverUrlTMG Server Url. It should start with
http://. and should containthalescloud.io. Mandatory input.serverCertificateSet the certificate used for Public key generation during communication with TMG Server. It should start with
-----BEGIN CERTIFICATE-----and end with-----END CERTIFICATE-----. Mandatory input.serverKeyIdKey identifier. It is a 32 byte
HexString. Mandatory input.certificatePinsThe
SHA-256hashes of server root certificate’s Subject Public Key Info and base64-encoded, prefixed with eitherSHA-256. Mandatory input. It is a 22 byteHexString. -
Initializing the tmgUrl, certificate, key identifier and certificate pins for Builder
Declaration
Swift
public init(serverUrl: String, serverCertificate: Data?, serverKeyId: String)Parameters
serverUrlTMG Server Url. It should start with
http://. and should containthalescloud.io. Mandatory input.serverCertificateSet the certificate used for Public key generation during communication with TMG Server. It should start with
-----BEGIN CERTIFICATE-----and end with-----END CERTIFICATE-----. Mandatory input.serverKeyIdKey identifier. It is a 32 byte
HexString. Mandatory input.
Builder Class Reference