Class DocumentSerializer
- java.lang.Object
-
- org.apache.xml.security.encryption.AbstractSerializer
-
- org.apache.xml.security.encryption.DocumentSerializer
-
- All Implemented Interfaces:
Serializer
public class DocumentSerializer extends AbstractSerializer
ConvertsString
s intoNode
s and visa versa.
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.encryption.AbstractSerializer
canon, secureValidation
-
-
Constructor Summary
Constructors Constructor Description DocumentSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
deserialize(byte[] source, Node ctx)
Node
deserialize(String source, Node ctx)
-
Methods inherited from class org.apache.xml.security.encryption.AbstractSerializer
canonSerialize, canonSerializeToByteArray, createContext, createContext, isSecureValidation, serialize, serialize, serializeToByteArray, serializeToByteArray, setCanonicalizer, setSecureValidation
-
-
-
-
Method Detail
-
deserialize
public Node deserialize(byte[] source, Node ctx) throws XMLEncryptionException
- Specified by:
deserialize
in interfaceSerializer
- Specified by:
deserialize
in classAbstractSerializer
- Parameters:
source
-ctx
-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionException
-
deserialize
public Node deserialize(String source, Node ctx) throws XMLEncryptionException
- Specified by:
deserialize
in classAbstractSerializer
- Parameters:
source
-ctx
-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionException
-
-