From the course: Java EE 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Security API demo

Security API demo - Java EE Tutorial

From the course: Java EE 8 Essential Training

Start my 1-month free trial

Security API demo

- [Instructor] In this lesson, we're going to walk through a demonstration that uses the Java EE 8 security API to secure a servlet. Within the demonstration, we're going to use the three primary interfaces found within the security API. So we're going to build a custom identity store. We're also going to create a custom HTTP authentication mechanism. And then we're going to leverage the security context. So to get started, we're going to create a new class within the com.linkedin package found in our H Sports catalog security project. So just open up the dialogue to create a new class. And then we're going to name that class security config. We'll go ahead and create the class. And then we're going to apply some annotations here. We're going to add the named annotation and we're also going to specify that this class is application-scoped. So we've seen both of those before. And then we're going to introduce a new annotation…

Contents