connect

fun connect(enableModule: Set<Modules>, userPrivateKey: String, solutionId: String, bridgeUrl: String, verificationOptions: PKIVerificationOptions? = null): PrivmxEndpoint

Creates a new connection.

Return

Created connection

Parameters

enableModule

set of modules to initialize

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

verificationOptions

PrivMX Bridge server instance verification options using a PKI server

Throws

if there is a problem during login

if there is an unknown problem during login