AnonymousSealdSDK
class AnonymousSealdSDK@JvmOverloadsconstructor(apiURL: String = "https://api.seald.io/", appId: String, instanceName: String = "AnonymousSealdSDK", logLevel: Byte = 0, logNoColor: Boolean = true)
This is the main class for the anonymous Seald SDK. It represents an instance of the Anonymous Seald SDK.
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. |
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 . |
Throws
SealdException |
Constructors
AnonymousSealdSDK | @JvmOverloads constructor(apiURL: String = "https://api.seald.io/", appId: String, instanceName: String = "AnonymousSealdSDK", logLevel: Byte = 0, logNoColor: Boolean = true) |
Functions
Name | Summary |
---|---|
createAnonymousEncryptionSession | @JvmOverloads fun createAnonymousEncryptionSession(encryptionToken: String, getKeysToken: String, recipients: Array<String>, tmrRecipients: Array<AnonymousTmrRecipient>? = null): AnonymousEncryptionSession Create an anonymous encryption session, and returns the associated AnonymousEncryptionSession instance, with which you can then encrypt / decrypt multiple messages. |
createAnonymousEncryptionSessionAsync | @JvmOverloads suspend fun createAnonymousEncryptionSessionAsync(encryptionToken: String, getKeysToken: String, recipients: Array<String>, tmrRecipients: Array<AnonymousTmrRecipient>? = null): AnonymousEncryptionSession Create an anonymous encryption session, and returns the associated AnonymousEncryptionSession instance, with which you can then encrypt / decrypt multiple messages. |
deserializeAnonymousEncryptionSession | fun deserializeAnonymousEncryptionSession(serializedSession: String): AnonymousEncryptionSession Deserialize a serialized session. For advanced use. |