DittoIdentity

sealed class DittoIdentity

The various identity configurations that you can use when initializing a Ditto instance.

  • Development: An identity to be used while in development when you want to control either or both of the app name and the site ID of the peer.

  • Production: The identity to use when in production. This accepts a certificate bundle, which includes identity information, as a base 64 encoded string.

Types

Development
Link copied to clipboard
class Development @JvmOverloads() constructor(dependencies: DittoDependencies, appName: String?, siteID: BigInteger?) : DittoIdentity
An identity to be used while in development when you want to control either or both of the app name and the site ID of the peer.
Production
Link copied to clipboard
class Production @JvmOverloads() constructor(certificateConfig: String) : DittoIdentity
The identity to use when in production.
SharedKey
Link copied to clipboard
class SharedKey @JvmOverloads() constructor(dependencies: DittoDependencies, appName: String, sharedKey: String, siteID: BigInteger?) : DittoIdentity
An identity where every device knows the same secret key.

Functions

close
Link copied to clipboard
fun close()

Properties

authClient
Link copied to clipboard
var authClient: SWIGTYPE_p_CAuthClient? = null

Inheritors

DittoIdentity
Link copied to clipboard
DittoIdentity
Link copied to clipboard
DittoIdentity
Link copied to clipboard