public class JwtTokenUtils { public static Boolean validate(String token, String userName, String key) { String usernameByToken = getUsername(token, key); return usernameByToken.equals(userName) && !isTokenExpired(token, key); } public static Claims extractAllClaims(String token, String key) { return Jwts.parserBuilder() .setSigningKey(getSigningKey(k..