Search⌘ K
AI Features

Introduction to Window Shopping

Explore Basic authentication mechanisms and Base64 encoding in Jakarta EE web applications. Understand project setup with Maven and the role of encoding in transmitting user credentials securely in headers.

Overview

In this chapter, we will explore the Basic authentication mechanism and learn about the headers and encoding. We’ll start by explaining how we can create the project skeleton with Maven. We will also compare the usage of a third party library and the Jakarta EE standard to perform the task.

Project creation

As discussed in the introduction, we will use Maven to build our projects. If you are more familiar with Gradle or any other build tool, you can use the one you’re most comfortable with. We will only use the tool to define dependencies and generate the web archive that we will run each time.

There are several ways we can create a pom.xml file with WAR ...