Once a username and password challenge has been implemented the next step is to configure encryption of the web communication itself. This will ensure that no one can snoop on your private conversations. You cantake a light look at how to enable HTTPS encryption for the chat application.
- [Instructor] Now let's see how to encrypt…our WebSocket connection so that…no one can snoop on our conversations.…We need to make some configurations…to the deployment descriptor,…and change the URI endpoint in the JavaScript file…that creates the client connection…in the client application.…I have opened here already the web.xml file,…and in this file, we simply need to specify…the transport guarantee as confidential.…So, let's do that first.…So, here in this location,…we simply need to start specifying…how to use the data constraints,…and then we're gonna use the data constraint…to specify it as confidential.…
And that's it.…We now have an encrypted access…to the rooms slash star URI.…Now that the chat endpoint is encrypted,…the protocol schema has changed from WS to WSS,…and the port has changed to 8181,…so you must change the service location URI…in the WebSocket client JavaScript file…in the webapp directories.…So I have this open here already,…and this is the URL we need to change.…We just simply change the protocol to WSS,…
Author
Released
6/13/2017Join Alex Theedom as he guides you through the lifecycle of a WebSocket connection, and discusses the Java EE WebSocket programming methodologies: annotation and programmatic. He shows how to secure and encrypt WebSocket endpoints and use simple techniques to test their implementation. In addition, he explains how to integrate the JSON-processing API and build a front-end and server based WebSocket client.
- WebSocket usage
- WebSocket lifecycle and topology
- WebSocket front end and back end
- WebSocket methodologies
- Annotation methodology and programmatic methodology
- Coding a client API
- Using the JSON Processing API
- Coding the encoder and decoder
- Building the front end
- Testing WebSocket endpoints
Skill Level Intermediate
Duration
Views
Related Courses
-
Java EE: Web Services (2014)
with Patrick Royal2h 25m Intermediate -
Java Platforms Compared: SE vs EE vs ME
with Peggy Fisher25m 38s Intermediate -
JSON Processing with Java EE
with Alex Theedom1h 4m Intermediate
-
Introduction
-
Welcome54s
-
What you should know1m 45s
-
Challenges40s
-
-
1. Introduction to WebSocket
-
Rise of WebSocket3m 53s
-
WebSocket usage2m 16s
-
-
2. WebSockets Front End and Back End
-
3. Project Application and Structure
-
Deployment1m 13s
-
4. Java EE WebSocket API
-
WebSocket methodologies1m 52s
-
WebSocket functionality1m 56s
-
Annotation methodology2m 38s
-
Configure the session5m 32s
-
Lifecycle logic4m 1s
-
Programmatic methodology1m 16s
-
WebSocket client API1m 37s
-
Code a client API6m 54s
-
-
5. Messages and Encoding
-
Use the JSON Processing API2m 17s
-
Encoders and decoders1m 36s
-
Code the encoder3m 14s
-
Code the decoder3m 31s
-
-
6. Build Web Front End
-
WebSocket web front end2m 30s
-
Build the front end5m 16s
-
-
7. WebSocket Security
-
Secure WebSocket endpoint3m 12s
-
WebSocket security5m 44s
-
WebSocket encryption2m 35s
-
-
8. Testing WebSocket Endpoints
-
Conclusion
-
Next steps1m 37s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: WebSocket encryption