We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JWT ํ ํฐ ๋ฐ๊ธ ๊ด๋ จ ํํฐ ๋ก์ง ์์ฑ
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
@Component public class JwtTokenProvider { public boolean validateToken(String token) { try { Jwts.parserBuilder() .setSigningKey(this.secretKey) .build() .parseClaimsJws(token); return true; } catch (ExpiredJwtException e) { throw new CustomAuthenticationCoreException(ErrorCode.UNAUTHORIZED); } catch (UnsupportedJwtException | MalformedJwtException | SignatureException e) { throw new CustomAuthenticationCoreException(ErrorCode.UNAUTHORIZED); } catch (IllegalArgumentException e) { System.out.println("JWT claims string is empty"); } return false; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
๐ ์ด์์ค๋ช
JWT ํ ํฐ ๋ฐ๊ธ ๊ด๋ จ ํํฐ ๋ก์ง ์์ฑ
๐ Description
โฐ ๋ฌธ์ ํด๊ฒฐ์ ์ํด ์๋ํ ์
โ๏ธย ์ฃผ์ํ ์
โ TODO
The text was updated successfully, but these errors were encountered: