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