{"id":19198604,"url":"https://github.com/virgilsecurity/demo-e2ee-server-java","last_synced_at":"2026-06-17T16:06:26.359Z","repository":{"id":146282571,"uuid":"127112693","full_name":"VirgilSecurity/demo-e2ee-server-java","owner":"VirgilSecurity","description":"A simple Java server application that uses in end-to-end encryption (E2EE) use-case.","archived":false,"fork":false,"pushed_at":"2018-04-17T16:03:59.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-08-24T19:52:14.850Z","etag":null,"topics":["crypto","cryptography","demo","encryption","end-to-end-encryption","secured-by-virgil","server"],"latest_commit_sha":null,"homepage":"https://developer.virgilsecurity.com/docs/java/use-cases/v4/encrypted-communication","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VirgilSecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-28T08:58:19.000Z","updated_at":"2018-07-10T17:04:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c7f41bb-62da-42a7-a214-49bcce978a65","html_url":"https://github.com/VirgilSecurity/demo-e2ee-server-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VirgilSecurity/demo-e2ee-server-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fdemo-e2ee-server-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fdemo-e2ee-server-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fdemo-e2ee-server-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fdemo-e2ee-server-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VirgilSecurity","download_url":"https://codeload.github.com/VirgilSecurity/demo-e2ee-server-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fdemo-e2ee-server-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281185454,"owners_count":26457747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto","cryptography","demo","encryption","end-to-end-encryption","secured-by-virgil","server"],"created_at":"2024-11-09T12:22:53.235Z","updated_at":"2025-10-26T23:04:33.491Z","avatar_url":"https://github.com/VirgilSecurity.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# e2ee-server-java\nA simple java server application that uses in end-to-end encryption use-case.\n\n# Prerequisites\n\n* Java Development Kit (JDK) 9+\n* Gradle 4.4+\n\n# ! All info below is OUTDATED\n\n# Configuration\n\n## Create Google application\n\nGo to [Developer Console](https://console.developers.google.com)\nRegister oAuth 2.0 client\n\n## Configure application\nDefine system variables\n```\nSECURITY_OAUTH2_CLIENT_CLIENTID=\u003cyour client identifier\u003e\nSECURITY_OAUTH2_CLIENT_CLIENTSECRET=\u003cyour client secret\u003e\n```\n\n# Authentication\n\nUse [oAuth 2.0](https://tools.ietf.org/html/rfc6749) to authenticate user. After login user session created. `JSESSIONID` cookie used as a session identifier.\n\n# REST endpoints\n\n## Current user details\n**Request info**\n```\nHTTP Request method    GET\nRequest URL            /user\nAuthentication         Optional\n```\n\n# WebSocket\nThe endpoint for WebSocket connection is `/websocket`.\n\n## Destinations\n\n### Update active users list\nSend message to server if you need to refresh users list manually.\n```\n/users\n```\n\n### Send a message\n```\n/message\n```\nMessage sent by a client could be received by active clients only.\n\n*Message body*\n```json\n{\n  \"body\": \"The text of a message\"\n}\n```\n\n## Topics\n\n### Active users\n```\n/topic/activeusers\n```\nServer sends a list of active users automatically every time when client connects/disconnects to server. To receive this messages client should subscribed to the topic.\n\n*Message body*\n```json\n[\n  {\n    \"name\" : \"User1 name\",\n    \"email\": \"User1 email\"\n  },\n  {\n    \"name\" : \"User2 name\",\n    \"email\": \"User2 email\"\n  }\n  ...\n]\n```\n\n### Receive a message\n```\n/topic/messages\n```\nOnce client sends a message, this message will be received by all active clients including sender.\n\n*Message body*\n```json\n{\n  \"author\":\"User1 name\",\n  \"body\":\"The text of a message\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgilsecurity%2Fdemo-e2ee-server-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirgilsecurity%2Fdemo-e2ee-server-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgilsecurity%2Fdemo-e2ee-server-java/lists"}