java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.auth.jwt.CreateJWTUseCase

@Component public class CreateJWTUseCase extends Object
This class is used to execute the JWT create method using Algorithm HMAC256 along with the authenticated user login and id
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • CreateJWTUseCase

      public CreateJWTUseCase()
  • Method Details

    • execute

      public String execute(User user)
      Creates a json web token
      Parameters:
      user - The authenticated user
      Returns:
      A string containing the json web token signed with Algorithm HMAC256