Jws<Claims> claimsJws = Jwts.parser() depricated .setSigningKey(Keys.hmacShaKeyFor(secretKey.getBytes())) depricted .parseClaimsJws(token);