diff --git a/mvnw b/mvnw old mode 100644 new mode 100755 diff --git a/pom.xml b/pom.xml index e33d7b5..6c9e458 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ 2.0.62 33.6.0-jre 3.2.1 - 4.0.1 + 6.1.0 1.18.46 2.2.1 @@ -97,11 +97,13 @@ org.apache.shiro shiro-core ${shiro.version} + jakarta org.apache.shiro shiro-web ${shiro.version} + jakarta com.alibaba @@ -129,9 +131,9 @@ ${spring.version} - javax.servlet - javax.servlet-api - ${javax-servlet-api.version} + jakarta.servlet + jakarta.servlet-api + ${jakarta-servlet-api.version} provided diff --git a/shiro-jwt-core/pom.xml b/shiro-jwt-core/pom.xml index a5ab5ae..210f2ae 100644 --- a/shiro-jwt-core/pom.xml +++ b/shiro-jwt-core/pom.xml @@ -20,6 +20,7 @@ org.apache.shiro shiro-core + jakarta com.alibaba diff --git a/shiro-jwt-spring/pom.xml b/shiro-jwt-spring/pom.xml index 4de77ab..5a97972 100644 --- a/shiro-jwt-spring/pom.xml +++ b/shiro-jwt-spring/pom.xml @@ -28,6 +28,7 @@ org.apache.shiro shiro-web + jakarta com.alibaba @@ -54,8 +55,8 @@ spring-web - javax.servlet - javax.servlet-api + jakarta.servlet + jakarta.servlet-api provided diff --git a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticatingFilter.java b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticatingFilter.java index 8a1ce2e..5cfc1b2 100644 --- a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticatingFilter.java +++ b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticatingFilter.java @@ -4,10 +4,10 @@ import java.nio.charset.StandardCharsets; import java.util.Objects; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServletRequest; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.http.Cookie; +import jakarta.servlet.http.HttpServletRequest; import org.apache.commons.lang3.StringUtils; import org.apache.shiro.authc.AuthenticationException; diff --git a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticationFailureHandler.java b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticationFailureHandler.java index 4fcfd28..31b5d1e 100644 --- a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticationFailureHandler.java +++ b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticationFailureHandler.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.shiro.authc.AuthenticationException; diff --git a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticationSuccessHandler.java b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticationSuccessHandler.java index 8ada8db..41a360b 100644 --- a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticationSuccessHandler.java +++ b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authc/JwtAuthenticationSuccessHandler.java @@ -5,8 +5,8 @@ import java.util.Map; import java.util.Objects; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.biz.authc.AuthenticationSuccessHandler; diff --git a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtAuthorizationFailureHandler.java b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtAuthorizationFailureHandler.java index 23f26a5..06a02bc 100644 --- a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtAuthorizationFailureHandler.java +++ b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtAuthorizationFailureHandler.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.shiro.authc.AuthenticationException; diff --git a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtAuthorizationFilter.java b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtAuthorizationFilter.java index c8c898d..3e305b5 100644 --- a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtAuthorizationFilter.java +++ b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtAuthorizationFilter.java @@ -4,10 +4,10 @@ import java.nio.charset.StandardCharsets; import java.util.Objects; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServletRequest; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.http.Cookie; +import jakarta.servlet.http.HttpServletRequest; import org.apache.commons.lang3.StringUtils; import org.apache.shiro.authc.AuthenticationException; diff --git a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtWithinExpiryFilter.java b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtWithinExpiryFilter.java index 66bad41..260bdfd 100644 --- a/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtWithinExpiryFilter.java +++ b/shiro-jwt-spring/src/main/java/org/apache/shiro/jwt/authz/JwtWithinExpiryFilter.java @@ -1,7 +1,7 @@ package org.apache.shiro.jwt.authz; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; import org.apache.shiro.subject.Subject;