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
)
Name | Type | Description |
---|---|---|
enableModule | Set<Modules> | set of modules to initialize; should contain Modules#THREAD to enable Thread module or Modules#STORE to enable Store module |
userPrivateKey | String | user private key used to authorize; generated from: CryptoApi#generatePrivateKey or CryptoApi#derivePrivateKey |
solutionId | String | `SolutionId` of the current project |
platformUrl | String | Platform'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()