diff --git a/examples/README.md b/examples/README.md index 0d88b9c49..1a2e1a0af 100644 --- a/examples/README.md +++ b/examples/README.md @@ -67,4 +67,10 @@ This folder contains an extensive collection of Hazelcast C++ Client code sample **tls** — Example for showing how to configure SSL/TLS encryption for cluster communication. -**transactions** — Illustrates the usage of transactions in the cluster. \ No newline at end of file +**transactions** — Illustrates the usage of transactions in the cluster. + +## How to Build and Run the Examples + +See reference +manual [Advanced Installation section](https://docs.hazelcast.com/hazelcast/latest/clients/cplusplus#advanced-installation) +to build and run the examples. \ No newline at end of file diff --git a/examples/authentication/README.md b/examples/authentication/README.md new file mode 100644 index 000000000..a02c179ed --- /dev/null +++ b/examples/authentication/README.md @@ -0,0 +1,21 @@ +# username_password_authentication + +- Start server: + ```bash + java -Dhazelcast.config=./examples/authentication/hazelcast-username-password.xml -jar hazelcast-.jar + ``` +- Run client test: + ```bash + ./build/examples/authentication/username_password_authentication + ``` + +# token_authentication + +- Start server: + ```bash + java -Dhazelcast.config=./examples/authentication/hazelcast-token-credentials.xml -jar hazelcast-.jar + ``` +- Run client test: + ```bash + ./build/examples/authentication/token_authentication + ``` \ No newline at end of file diff --git a/examples/authentication/hazelcast-token-credentials.xml b/examples/authentication/hazelcast-token-credentials.xml index 6bde08a15..eca56a0c1 100644 --- a/examples/authentication/hazelcast-token-credentials.xml +++ b/examples/authentication/hazelcast-token-credentials.xml @@ -17,7 +17,8 @@ + http://www.hazelcast.com/schema/config/hazelcast-config-5.6.xsd"> + token-credentials-dev @@ -27,5 +28,14 @@ + + + + create + read + put + + + diff --git a/examples/authentication/hazelcast-username-password.xml b/examples/authentication/hazelcast-username-password.xml index 05fe1e7f2..c2dd60161 100644 --- a/examples/authentication/hazelcast-username-password.xml +++ b/examples/authentication/hazelcast-username-password.xml @@ -17,7 +17,7 @@ + http://www.hazelcast.com/schema/config/hazelcast-config-5.6.xsd"> @@ -27,5 +27,14 @@ + + + + create + read + put + + +