diff --git a/pom.xml b/pom.xml
index 679f387b..f7943ed6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,9 +46,12 @@ under the License.
4
999999-SNAPSHOT
- 2.401.3
+ 2.475
jenkinsci/${project.artifactId}-plugin
3.343.vb_63a_6c3df23c
+
+ 2265.v3da_49c8134d6
+ 17
@@ -295,11 +298,17 @@ under the License.
io.jenkins.tools.bom
- bom-2.401.x
- 2745.vc7b_fe4c876fa_
+ bom-2.462.x
+ 3307.v2769886db_63b_
pom
import
+
+
+ jakarta.servlet
+ jakarta.servlet-api
+ 5.0.0
+
org.apache.santuario
xmlsec
diff --git a/src/test/java/org/jenkinsci/plugins/saml/OpenSamlWrapperTest.java b/src/test/java/org/jenkinsci/plugins/saml/OpenSamlWrapperTest.java
index d2c8b23c..7be1f565 100644
--- a/src/test/java/org/jenkinsci/plugins/saml/OpenSamlWrapperTest.java
+++ b/src/test/java/org/jenkinsci/plugins/saml/OpenSamlWrapperTest.java
@@ -23,10 +23,10 @@
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.kohsuke.stapler.HttpResponse;
-import org.kohsuke.stapler.StaplerResponse;
+import org.kohsuke.stapler.StaplerResponse2;
import org.mockito.Mockito;
-import javax.servlet.ServletException;
+import jakarta.servlet.ServletException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
@@ -60,7 +60,7 @@ public void metadataWrapper() throws IOException, ServletException {
jenkinsRule.jenkins.setSecurityRealm(samlSecurity);
SamlSPMetadataWrapper samlSPMetadataWrapper = new SamlSPMetadataWrapper(samlSecurity.getSamlPluginConfig(), null, null);
HttpResponse process = samlSPMetadataWrapper.get();
- StaplerResponse mockResponse = Mockito.mock(StaplerResponse.class);
+ StaplerResponse2 mockResponse = Mockito.mock(StaplerResponse2.class);
StringWriter stringWriter = new StringWriter();
when(mockResponse.getWriter()).thenReturn(new PrintWriter(stringWriter));
process.generateResponse(null, mockResponse, null);
@@ -89,7 +89,7 @@ public void metadataWrapperWitEncrytionConfigured() throws IOException, ServletE
jenkinsRule.jenkins.setSecurityRealm(samlSecurity);
SamlSPMetadataWrapper samlSPMetadataWrapper = new SamlSPMetadataWrapper(samlSecurity.getSamlPluginConfig(), null, null);
HttpResponse process = samlSPMetadataWrapper.get();
- StaplerResponse mockResponse = Mockito.mock(StaplerResponse.class);
+ StaplerResponse2 mockResponse = Mockito.mock(StaplerResponse2.class);
StringWriter stringWriter = new StringWriter();
when(mockResponse.getWriter()).thenReturn(new PrintWriter(stringWriter));
process.generateResponse(null, mockResponse, null);