Skip to main content
reference

BasicPrivmxEndpoint

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

Constructors

BasicPrivmxEndpoint

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

public void BasicPrivmxEndpoint(
Set<Modules> enableModule,
String userPrivateKey,
String solutionId,
String platformUrl
)

NameTypeDescription
enableModuleSet<Modules>set of modules to initialize; should contain Modules#THREAD to enable Thread module or Modules#STORE to enable Store module
userPrivateKeyStringuser private key used to authorize; generated from: CryptoApi#generatePrivateKey or CryptoApi#derivePrivateKey
solutionIdString`SolutionId` of the current project
platformUrlStringPlatform's Endpoint URL

Fields

connection

Reference to Connection module.

public final Connection connection

inboxApi

Reference to Inbox module.

public final InboxApi inboxApi

storeApi

Reference to Store module.

public final StoreApi storeApi

threadApi

Reference to Thread module.

public final ThreadApi threadApi

Methods

close

Disconnects from PrivMX Bridge and frees memory.

public void close()