Configuration

public struct Configuration

SDK Configuration

  • Your application identifier

    Declaration

    Swift

    public let appId: String
  • Your contract identifier

    Declaration

    Swift

    public let contractId: String
  • The PKCS1 private key base 64 encoded data

    Declaration

    Swift

    public let privateKeyData: Data
  • Creates a configuration

    Declaration

    Swift

    public init(appId: String, contractId: String, privateKey: String) throws

    Parameters

    appId

    Your application identifier

    contractId

    Your contract identifier

    privateKey

    Your PKCS1 private key in PEM format - either with or without the “—–BEGIN RSA PRIVATE KEY—–” header and “—–END RSA PRIVATE KEY—–” footer