@RestControllerAdvice @Order(value=0) public class JwtExceptionHandler extends Object
构造器和说明 |
---|
JwtExceptionHandler() |
限定符和类型 | 方法和说明 |
---|---|
RespResult<Void> |
handleAccessDeniedException(org.springframework.security.access.AccessDeniedException e)
处理AccessDeniedException
|
RespResult<Void> |
handleAccessDeniedException(io.jsonwebtoken.security.SecurityException e)
处理SecurityException
|
RespResult<Void> |
handleDisposedJwtException(DisposedJwtException e)
处理DisposedJwtException
|
RespResult<Void> |
handleExpiredJwtException(io.jsonwebtoken.ExpiredJwtException e)
处理ExpiredJwtException
|
RespResult<Void> |
handleKickOffJwtException(KickOffJwtException e)
处理KickOffJwtException
|
RespResult<Void> |
handleMalformedJwtException(io.jsonwebtoken.MalformedJwtException e)
处理MalformedJwtException
|
RespResult<Void> |
handleUnsupportedJwtException(io.jsonwebtoken.UnsupportedJwtException e)
处理UnsupportedJwtException
|
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=io.jsonwebtoken.security.SecurityException.class) public RespResult<Void> handleAccessDeniedException(io.jsonwebtoken.security.SecurityException e)
e
- @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=io.jsonwebtoken.MalformedJwtException.class) public RespResult<Void> handleMalformedJwtException(io.jsonwebtoken.MalformedJwtException e)
e
- @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=io.jsonwebtoken.ExpiredJwtException.class) public RespResult<Void> handleExpiredJwtException(io.jsonwebtoken.ExpiredJwtException e)
e
- @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=DisposedJwtException.class) public RespResult<Void> handleDisposedJwtException(DisposedJwtException e)
e
- @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=io.jsonwebtoken.UnsupportedJwtException.class) public RespResult<Void> handleUnsupportedJwtException(io.jsonwebtoken.UnsupportedJwtException e)
e
- @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=KickOffJwtException.class) public RespResult<Void> handleKickOffJwtException(KickOffJwtException e)
e
- @ResponseStatus(value=FORBIDDEN) @ExceptionHandler(value=org.springframework.security.access.AccessDeniedException.class) public RespResult<Void> handleAccessDeniedException(org.springframework.security.access.AccessDeniedException e)
e
-