Class GetJWTSubjectUseCase
java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.auth.jwt.GetJWTSubjectUseCase
This class is used to execute the JWT verify method using Algorithm HMAC256 and application secret
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GetJWTSubjectUseCase
public GetJWTSubjectUseCase()
-
-
Method Details
-
execute
Gets the jwt subject- Parameters:
token- The json web token on request header- Returns:
- A string containing the subject from the decoded jwt
-