SealdSDK
constructor(apiURL: String = "https://api.seald.io/", appId: String, databasePath: String? = null, databaseEncryptionKey: ByteArray? = null, maxParallelRequests: Int = 10, instanceName: String = "SealdSDK", logLevel: Byte = 0, logNoColor: Boolean = true, encryptionSessionCacheTTL: Duration? = Duration.ZERO, keySize: Int = 4096)
Parameters
| apiURL | The Seald server for this instance to use. This value is given on your Seald dashboard. |
| appId | The ID given by the Seald server to your app. This value is given on your Seald dashboard. |
| databasePath | The path where to store the local Seald database. If no path is passed, uses an in-memory only database. |
| databaseEncryptionKey | The encryption key with which to encrypt the local Seald database. Required when passing databasePath. This must be the Base64 string encoding of a cryptographically random buffer of 64 bytes. |
| maxParallelRequests | Maximum number of concurrent network requests allowed for this instance. Defaults to 10. Set to a negative value to disable the limit entirely. |
| instanceName | An arbitrary name to give to this Seald instance. Can be useful for debugging when multiple instances are running in parallel, as it is added to logs. |
| logLevel | The minimum level of logs you want. All logs of this level or above will be displayed. -1: Trace; 0: Debug; 1: Info; 2: Warn; 3: Error; 4: Fatal; 5: Panic; 6: NoLevel; 7: Disabled. |
| logNoColor | Should be set to false if you want to enable colors in the log output. Defaults to true. |
| encryptionSessionCacheTTL | The duration of cache lifetime. null to cache forever. Default to 0 (no cache). |
| keySize | The Asymmetric key size for newly generated keys. Defaults to 4096. Warning: for security, it is extremely not recommended to lower this value. For advanced use only. |