Package com.unosquare.carmigo.util
Class JwtTokenService
java.lang.Object
com.unosquare.carmigo.util.JwtTokenService
Handles JWT tokens by generating, validating and extracting data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R> R
extractClaim
(String token, Function<io.jsonwebtoken.Claims, R> claimsResolver) extractExpiration
(String token) extractUsername
(String token) generateToken
(org.springframework.security.core.userdetails.UserDetails userDetails) validateToken
(String token, org.springframework.security.core.userdetails.UserDetails userDetails)
-
Constructor Details
-
JwtTokenService
public JwtTokenService()
-
-
Method Details
-
generateToken
-
validateToken
-
extractUsername
-
extractExpiration
-
extractClaim
-