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 overview

Security API overview - Java EE Tutorial

From the course: Java EE 8 Essential Training

Start my 1-month free trial

Security API overview

- The Java EE Security API is a new API introduced in Java EE 8 that simplifies and standardizes the security model. The Security API was introduced as part of JSR 375. It was meant to build a better security model that is portable across several Java EE technologies. The API takes an annotation-based approach, eliminating the need for configuration to be placed in a web.xml file moving forward. Prior to the Security API, container providers defined their own implementations which contain differing concepts and terminology. This made it difficult for developers to implement security. The changes introduced in the Security API allow security to be applied uniformly across containers for servlets and EJB. The first new interface introduced by the Security API that we'll cover is the HttpAuthenticationMechanism. It defines an interface for building authentication mechanisms that can be deployed using CDI. So, basically, this…

Contents