BasicPrivmxEndpoint

open class BasicPrivmxEndpoint(enableModule: Set<Modules>, userPrivateKey: String, solutionId: String, bridgeUrl: String) : AutoCloseable

A collection of all PrivMX Endpoint modules. It represents a single connection to PrivMX Bridge.

Parameters

enableModule

set of modules to initialize; should contain Modules.THREAD to enable Thread module or Modules.STORE to enable Store module

bridgeUrl

PrivMX Bridge server URL

solutionId

SolutionId of the current project

userPrivateKey

user private key used to authorize; generated from: CryptoApi.generatePrivateKey or CryptoApi.derivePrivateKey2

Throws

thrown if there is an exception during init modules

thrown if there is a problem during login

thrown if there is an unknown problem during login

Inheritors

Constructors

Link copied to clipboard
constructor(enableModule: Set<Modules>, userPrivateKey: String, solutionId: String, bridgeUrl: String)

Initializes modules and connects to PrivMX Bridge server using given parameters.

Properties

Link copied to clipboard

Reference to Connection module.

Link copied to clipboard

Reference to Inbox module.

Link copied to clipboard

Reference to Store module.

Link copied to clipboard

Reference to Thread module.

Functions

Link copied to clipboard
open override fun close()

Disconnects from PrivMX Bridge and frees memory.