Builder

public class Builder

Used to build TMGClientConfiguration object.

Version

Version 1.0

Since

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 Hex String.

    Declaration

    Swift

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

    Declaration

    Swift

    @available(*, deprecated, message: "certificatePins value is ignored.")
    public var certificatePins: String
  • Warning

    Certificate pinning is handled internally within the SDK; therefore, the certificatePins parameter 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

    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.

  • Initializing the tmgUrl, certificate, key identifier and certificate pins for Builder

    Declaration

    Swift

    public init(serverUrl: String, serverCertificate: Data?, serverKeyId: 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.