From the course: Java EE 8: Web Services
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Password authentication in JAX-RS - Java EE Tutorial
From the course: Java EE 8: Web Services
Password authentication in JAX-RS
- Let's talk about security. See, because the JAX-RS API is underpinned by servlet technology, a good rule of thumb is this: If it works for or in servlets, it'll work for a JAX-RS client and web service. A wonderful example of this is security. Any security apparatus you're familiar with in Servlet world is applicable in JAX-RS. O-off, check. Client SSL Certificates, check. Role based authorization, using the @RolesAllowed annotation, checkaroonie. How about simple username+password authentication? That's a major check there. In this video, you'll see how to implement a simple username+password authentication mechanism in a JAX-RS web service. Now, familiarity with basic JAVA EE security terms and Servlets is encouraged here. I encourage you to get a quick overview of those technologies. Oracle has a wonderful learning track for Servlets here. Use these links to get a running headstart on servlet technology,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.