All Known Implementing Classes:
TokenServiceImpl

public interface TokenService
Token service interface for managing the jwt feature
Version:
1.0
Author:
Mirna Gama
  • Method Details

    • generateToken

      String generateToken(User user)
      Generates the authorization token
      Parameters:
      user - The authenticated user
      Returns:
      A string containing the authorization token
    • getTokenSubject

      String getTokenSubject(String token)
      Gets the jwt subject
      Parameters:
      token - The json web token on request header
      Returns:
      A string containing the subject from the decoded jwt