Interface JwtService

All Known Implementing Classes:
JwtServiceImpl

public interface JwtService
Service interface for handling JSON Web Token (JWT) operations. Provides functionality for generating JWTs for authenticated users.
Since:
1.0.0
Version:
1.0.0, 06/23/2025
Author:
Fernando Cruz Cavina
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Generates a signed JWT for the specified authenticated user.
  • Method Details

    • generateToken

      String generateToken(UserAuthenticated user)
      Generates a signed JWT for the specified authenticated user. The token is used to authorize access to protected resources in other microservices.
      Parameters:
      user - the authenticated user
      Returns:
      a signed JWT token as a String