Code cleanup

This commit is contained in:
2025-01-31 11:12:40 +01:00
parent c2bfbb5bec
commit 5bd9272822

View File

@ -3,7 +3,6 @@ package ch.dlmw.swisssignchallenge.filters;
import ch.dlmw.swisssignchallenge.exceptions.JwtAuthenticationException; import ch.dlmw.swisssignchallenge.exceptions.JwtAuthenticationException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.servlet.FilterChain; import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.openapitools.model.ErrorResponse; import org.openapitools.model.ErrorResponse;
@ -35,7 +34,7 @@ public class JwtRequestFilter extends OncePerRequestFilter {
private JwtUtil jwtUtil; private JwtUtil jwtUtil;
@Override @Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws IOException {
try { try {
final String authorizationHeader = request.getHeader("Authorization"); final String authorizationHeader = request.getHeader("Authorization");