Package tech.lastbox.lastshield.security.core
package tech.lastbox.lastshield.security.core
-
ClassDescriptionThe
CoreSecurityConfigclass configures the security settings for the web application, including authorization, authentication, and Cross-Site Request Forgery (CSRF) protection.TheCorsConfigclass is responsible for configuring Cross-Origin Resource Sharing (CORS) settings for the application.CustomUserDetailsServiceis an implementation ofUserDetailsServicethat loads user-specific data during authentication.EmptyTokenExceptionis a custom exception that extendsRuntimeException.Represents a standardized error response format for API error messages.Global exception handler that handlesRuntimeExceptionexceptions across the entire application.Represents the authorization configuration for a specific route within the application.A custom security filter that intercepts HTTP requests and performs token validation to authenticate users based on a JWT (JSON Web Token).Utility class for various security-related operations, such as retrieving user roles and authorities, locating user repositories, and interacting with user entities via reflection.