Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Cloud-Native Applications with Java and Quarkus

You're reading from   Hands-On Cloud-Native Applications with Java and Quarkus Build high performance, Kubernetes-native Java serverless applications

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher Packt
ISBN-13 9781838821470
Length 314 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Francesco Marchioni Francesco Marchioni
Author Profile Icon Francesco Marchioni
Francesco Marchioni
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: Getting Started with Quarkus FREE CHAPTER
2. Introduction to Quarkus Core Concepts 3. Developing Your First Application with Quarkus 4. Creating a Container Image of Your Application 5. Section 2: Building Applications with Quarkus
6. Adding Web Interfaces to Quarkus Services 7. Managing Data Persistence with Quarkus 8. Building Applications Using the MicroProfile API 9. Securing Applications 10. Section 3: Advanced Development Tactics
11. Advanced Application Development 12. Unifying Imperative and Reactive with Vert.x 13. Reactive Messaging with Quarkus 14. Other Books You May Enjoy

Securing our customer service

The Quarkus security infrastructure derives from the standard Java Enterprise Edition (Java EE) specification, which is based on a simple role-based security model. By using that, you can specify your security constraints through annotations and configuration files.

In terms of Java annotations, the following ones can be used to specify security constraints that can be applied either on a single method or on a class:

  • @javax.annotation.security.RolesAllowed: This is the most common annotation as it specifies one or more roles that have been authorized to invoke a certain method or class.
  • @javax.annotation.security.RunAs: This annotation assigns a role dynamically during the invocation of a method or class. It can be a handy option if we need to temporarily allow the execution of some methods.
  • @javax.annotation.security.PermitAll: This annotation allows...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime