Package org.apache.cxf.ws.security.wss4j
Class StaxSerializer
java.lang.Object
org.apache.xml.security.encryption.AbstractSerializer
org.apache.cxf.ws.security.wss4j.StaxSerializer
- All Implemented Interfaces:
org.apache.xml.security.encryption.Serializer
public class StaxSerializer
extends org.apache.xml.security.encryption.AbstractSerializer
Converts
Strings into Nodes and visa versa using CXF's StaxUtils-
Field Summary
Fields inherited from class org.apache.xml.security.encryption.AbstractSerializer
secureValidation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(byte[] source, Node ctx) byte[]serializeToByteArray(Element element) Methods inherited from class org.apache.xml.security.encryption.AbstractSerializer
createContext, serializeToByteArray
-
Constructor Details
-
StaxSerializer
public StaxSerializer() throws org.apache.xml.security.c14n.InvalidCanonicalizerException- Throws:
org.apache.xml.security.c14n.InvalidCanonicalizerException
-
-
Method Details
-
deserialize
public Node deserialize(byte[] source, Node ctx) throws org.apache.xml.security.encryption.XMLEncryptionException - Parameters:
source-ctx-- Returns:
- the Node resulting from the parse of the source
- Throws:
org.apache.xml.security.encryption.XMLEncryptionException
-
serializeToByteArray
- Specified by:
serializeToByteArrayin interfaceorg.apache.xml.security.encryption.Serializer- Overrides:
serializeToByteArrayin classorg.apache.xml.security.encryption.AbstractSerializer- Throws:
Exception
-