Builder
public class Builder
Used to build TMGClientConfiguration object.
Version
Version 1.0Since
Since 1.0-
Initializing the tmgUrl, certificate, key identifier and certificate pins for Builder
Declaration
Swift
public 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.
Builder Class Reference