Package org.example.crmedu.infrastructure.auth.jwt


package org.example.crmedu.infrastructure.auth.jwt
This package contains classes responsible for handling JSON Web Token (JWT) authentication, including token generation, validation, and integration with Spring Security.

Key components:

  • JwtAuthentication – represents an authenticated user based on a JWT.
  • JwtFilter – extracts and validates JWT tokens from incoming HTTP requests.
  • JwtProvider – generates and validates JWT access and refresh tokens.
  • JwtUtils – utility class for extracting user details from JWT claims.
  • PasswordEncodeImpl – handles password encryption for secure authentication.
  • Classes
    Class
    Description
    Represents an authentication object for JWT-based security.
    JWT authentication filter that extracts and validates tokens from incoming requests.
    This class manages access and refresh tokens, ensuring secure authentication.
    Utility class that provides methods to extract user details, such as email and role, from JWT claims.
    This class provides a secure way to encode passwords before storing them in the system.