Console app written in Java demonstrating the use of PrivMX Endpoint Java library.
Install Chatee Server and PrivMX Bridge on your local infrastructure to use this application. For detailed installation instructions, go to the PrivMX Bridge project. To use this example you need a Solution, a Context within it and a user that has been added to that Context in the PrivMX Bridge. See the Documentation for relevant instructions.
-
Run
Sync
-
If native libraries are not installed automatically (there is no
src/main/jniLibs
directory in the project) then run:
./gradlew app:privmxEndpointInstallJni
-
Set required variables in Main.java file:
- platformUrl - URL to connect with your Privmx Bridge
- solutionId - ID for solution of your project
- userPrivateKey - private key to log in to Privmx Bridge
-
Create Run Configuration and add the line below into its VM options:
-Djava.library.path=src/main/jniLibs/Android/arm64_v8a:src/main/jniLibs/Android/armeabi_v7a:src/main/jniLibs/Android/x86:src/main/jniLibs/Android/x86_64:src/main/jniLibs/Darwin/arm64:src/main/jniLibs/arm64:src/main/jniLibs/arm64_v8a:src/main/jniLibs/armeabi_v7a:src/main/jniLibs/x86:src/main/jniLibs/x86_64
- Start the app using the created configuration.
No context
message means that there are no existing Contexts in your PrivMX Bridge. Add a Context within your
Solution as described in PrivMX Bridge documentation
PrivMX allows developers to build end-to-end encrypted apps used for communication. The Platform works according to privacy-by-design mindset, so all of our solutions are based on Zero-Knowledge architecture. This project extends PrivMX’s commitment to security by making its encryption features accessible to developers using Java.
PrivMX Endpoint Minimal Java.
Copyright © 2024 Simplito sp. z o.o.
This file is part of demonstration software for the PrivMX Platform (https://privmx.dev).
This software is Licensed under the MIT License.
PrivMX Endpoint and PrivMX Bridge are licensed under the PrivMX Free License. See the License for the specific language governing permissions and limitations under the License.