Builder

public class Builder

Used to build TMGClientConfiguration object.

Version

Version 1.0

Since

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

    serverUrl

    TMG Server Url. It should start with http://. and should contain thalescloud.io. Mandatory input.

    serverCertificate

    Set 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.

    serverKeyId

    Key identifier. It is a 32 byte Hex String. Mandatory input.

    certificatePins

    The SHA-256 hashes of server root certificate’s Subject Public Key Info and base64-encoded, prefixed with either SHA-256. Mandatory input. It is a 22 byte Hex String.