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

@Component public class GetJWTSubjectUseCase extends Object
This class is used to execute the JWT verify method using Algorithm HMAC256 and application secret
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • GetJWTSubjectUseCase

      public GetJWTSubjectUseCase()
  • Method Details

    • execute

      public String execute(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