From 05dae20a5178d9dfb593d4808278ad7468f3a012 Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Wed, 19 Jul 2023 08:57:53 +0000
Subject: [PATCH] Update to Keycloak 22.0.1

---
 src/main/java/org/keycloak/protocol/cas/utils/ServiceResponseMarshaller.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/keycloak/protocol/cas/utils/ServiceResponseMarshaller.java b/src/main/java/org/keycloak/protocol/cas/utils/ServiceResponseMarshaller.java
index a5aa6ac..cb872ef 100644
--- a/src/main/java/org/keycloak/protocol/cas/utils/ServiceResponseMarshaller.java
+++ b/src/main/java/org/keycloak/protocol/cas/utils/ServiceResponseMarshaller.java
@@ -5,11 +5,11 @@
 import com.fasterxml.jackson.core.util.DefaultIndenter;
 import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
 import com.fasterxml.jackson.databind.ObjectMapper;
-import org.keycloak.protocol.cas.representations.CasServiceResponse;
+import jakarta.xml.bind.JAXBContext;
+import jakarta.xml.bind.JAXBException;
+import jakarta.xml.bind.Marshaller;
+import org.keycloak.protocol.cas.representations.CASServiceResponse;
 
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBException;
-import javax.xml.bind.Marshaller;
 import java.io.StringWriter;
 import java.nio.charset.StandardCharsets;
 import java.util.HashMap;
@@ -23,9 +23,9 @@
     private ServiceResponseMarshaller() {
     }
 
-    public static String marshalXml(CasServiceResponse serviceResponse) {
+    public static String marshalXml(CASServiceResponse serviceResponse) {
         try {
-            JAXBContext jaxbContext = JAXBContext.newInstance(CasServiceResponse.class);
+            JAXBContext jaxbContext = JAXBContext.newInstance(CASServiceResponse.class);
             Marshaller marshaller = jaxbContext.createMarshaller();
             //disable xml header
             marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
@@ -39,7 +39,7 @@
         }
     }
 
-    public static String marshalJson(CasServiceResponse serviceResponse) {
+    public static String marshalJson(CASServiceResponse serviceResponse) {
         ObjectMapper mapper = new ObjectMapper();
         mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
         //Force newlines to be LF (default is system dependent)

--
Gitblit v1.9.1