Spring Security
eBook - ePub

Spring Security

Effectively secure your web apps, RESTful services, cloud apps, and microservice architectures

  1. 596 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Spring Security

Effectively secure your web apps, RESTful services, cloud apps, and microservice architectures

About this book

Leverage the power of Spring Security 6 to protect your modern Java applications from hackers

Key Features

  • Architect solutions that leverage Spring Security while remaining loosely coupled
  • Implement authentication and authorization with SAML2, OAuth 2, hashing, and encryption algorithms
  • Integrate Spring Security with technologies such as microservices, Kubernetes, the cloud, and GraalVM native images
  • Purchase of the print or Kindle book includes a free PDF eBook

Book Description

Knowing that experienced hackers are constantly on the prowl to attack your apps can make security one of the most challenging concerns of creating an app. The complexity of properly securing an app is compounded when you must also integrate this factor with legacy code, new technologies, and other frameworks. This book will help you easily secure your Java apps with Spring Security, a trusted and highly customizable authentication and access control framework.The book starts by showing you how to implement different authentication mechanisms before demonstrating how to properly restrict access to your app. You'll then cover tips for integrating Spring Security with popular web frameworks such as Thymeleaf. The book also features an example of how Spring Security defends against session fixation, moves into concurrency control, and how you can use session management for administrative functions. This fourth edition aligns with Java 17/21 and Spring Security 6, covering advanced security scenarios for RESTful web services and microservices. This ensures you gain a complete understanding of the issues surrounding stateless authentication and discover a concise approach to solving those issues.By the end of this book, you'll be able to integrate Spring Security 6 with GraalVM native images seamlessly, from start to finish.

What you will learn

  • Understand common security vulnerabilities and how to resolve them
  • Implement authentication and authorization and learn how to map users to roles
  • Integrate Spring Security with LDAP, Kerberos, SAML 2, OpenID, and OAuth
  • Get to grips with the security challenges of RESTful web services and microservices
  • Configure Spring Security to use Spring Data for authentication
  • Integrate Spring Security with Spring Boot, Spring Data, and web applications
  • Protect against common vulnerabilities like XSS, CSRF, and Clickjacking

Who this book is for

If you're a Java web developer or an architect with fundamental knowledge of Java 17/21, web services, and the Spring Framework, this book is for you. No previous experience with Spring Security is needed to get started with this book.

]]>

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Table of contents

  1. Spring Security
  2. Contributors
  3. Preface
  4. Part 1: Fundamentals of Application Security
  5. 1
  6. 2
  7. 3
  8. Part 2: Authentication Techniques
  9. 4
  10. 5
  11. 6
  12. 7
  13. 8
  14. Part 3: Exploring OAuth 2 and SAML 2
  15. 9
  16. 10
  17. Part 4: Enhancing Authorization Mechanisms
  18. 11
  19. 12
  20. 13
  21. Part 5: Advanced Security Features and Deployment Optimization
  22. 14
  23. 15
  24. 16
  25. 17
  26. 18
  27. 19
  28. Appendix – Additional Reference Material
  29. Index
  30. Other Books You May Enjoy

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Spring Security by Badr Nasslahsen in PDF and/or ePUB format, as well as other popular books in Computer Science & Cyber Security. We have over one million books available in our catalogue for you to explore.