You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2017/09/12 12:10:34 UTC

[cxf-fediz] branch master updated (1e8f76d -> 2f55c84)

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git.


    from 1e8f76d  Updating to released CXF version
     new 1bc2bf0  FEDIZ-209 - Make FedizResponse properly serializable
     new 2f55c84  Updating release notes for 1.4.2

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../cxf/fediz/core/processor/FedizResponse.java    | 25 ++++++++++++++++++++++
 release_notes.txt                                  |  9 +++++++-
 2 files changed, 33 insertions(+), 1 deletion(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <co...@cxf.apache.org>'].

[cxf-fediz] 01/02: FEDIZ-209 - Make FedizResponse properly serializable

Posted by co...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git

commit 1bc2bf069e608dea1b23b85f8c4d12e84ba770f5
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Sep 12 13:10:09 2017 +0100

    FEDIZ-209 - Make FedizResponse properly serializable
---
 .../cxf/fediz/core/processor/FedizResponse.java    | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FedizResponse.java b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FedizResponse.java
index 0c0ae33..e6bf782 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FedizResponse.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FedizResponse.java
@@ -19,14 +19,24 @@
 
 package org.apache.cxf.fediz.core.processor;
 
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
 import java.io.Serializable;
+import java.io.StringReader;
 import java.util.Collections;
 import java.util.Date;
 import java.util.List;
 
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.stream.XMLStreamException;
+
 import org.w3c.dom.Element;
+import org.xml.sax.SAXException;
 
 import org.apache.cxf.fediz.core.Claim;
+import org.apache.cxf.fediz.core.util.DOMUtils;
+import org.apache.wss4j.common.util.DOM2Writer;
 
 public class FedizResponse implements Serializable {
 
@@ -38,6 +48,7 @@ public class FedizResponse implements Serializable {
     private String issuer;
     private List<Claim> claims;
     private transient Element token;
+    private String tokenStr;
     private String uniqueTokenId;
 
     /**
@@ -116,5 +127,19 @@ public class FedizResponse implements Serializable {
         return token;
     }
 
+    private void writeObject(ObjectOutputStream stream) throws IOException {
+        if (token != null && tokenStr == null) {
+            tokenStr = DOM2Writer.nodeToString(token);
+        }
+        stream.defaultWriteObject();
+    }
+
+    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException,
+        XMLStreamException, SAXException, ParserConfigurationException {
+        in.defaultReadObject();
 
+        if (token == null && tokenStr != null) {
+            token = DOMUtils.readXml(new StringReader(tokenStr)).getDocumentElement();
+        }
+    }
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@cxf.apache.org" <co...@cxf.apache.org>.

[cxf-fediz] 02/02: Updating release notes for 1.4.2

Posted by co...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git

commit 2f55c84e811f52f830453185dddbff0f45188b98
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Sep 12 13:10:23 2017 +0100

    Updating release notes for 1.4.2
---
 release_notes.txt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/release_notes.txt b/release_notes.txt
index 1633f51..2e6c56c 100644
--- a/release_notes.txt
+++ b/release_notes.txt
@@ -1,4 +1,4 @@
-Apache CXF Fediz 1.4.1 Release Notes
+Apache CXF Fediz 1.4.2 Release Notes
 ------------------------------------
 
 1. Overview
@@ -65,6 +65,13 @@ N.A.
 
 8. Specific issues, features, and improvements fixed in this version
 
+Release Notes - CXF-Fediz - Version 1.4.2
+
+Improvement
+
+    [FEDIZ-206] - Revert FedizSubjectCreator changes
+    [FEDIZ-209] - Make FedizResponse properly serializable
+
 Release Notes - CXF-Fediz - Version 1.4.1
 
 Bug

-- 
To stop receiving notification emails like this one, please contact
"commits@cxf.apache.org" <co...@cxf.apache.org>.