public abstract class AbstractSerializer extends Object implements Serializer
Strings into Nodes and visa versa.
An abstract class for common Serializer functionality| Modifier and Type | Field and Description |
|---|---|
protected boolean |
secureValidation |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSerializer(String canonAlg,
boolean secureValidation) |
| Modifier and Type | Method and Description |
|---|---|
protected static byte[] |
createContext(byte[] source,
Node ctx) |
byte[] |
serializeToByteArray(Element element)
Returns a
byte[] representation of the specified
Element. |
byte[] |
serializeToByteArray(NodeList content)
Returns a
byte[] representation of the specified
NodeList. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserializeprotected AbstractSerializer(String canonAlg, boolean secureValidation) throws InvalidCanonicalizerException
InvalidCanonicalizerExceptionpublic byte[] serializeToByteArray(Element element) throws Exception
byte[] representation of the specified
Element.serializeToByteArray in interface Serializerelement - the Element to serialize.byte[] representation of the serilaized
Element.Exceptionpublic byte[] serializeToByteArray(NodeList content) throws Exception
byte[] representation of the specified
NodeList.serializeToByteArray in interface Serializercontent - the NodeList to serialize.byte[] representation of the serialized
NodeList.Exceptionprotected static byte[] createContext(byte[] source,
Node ctx)
throws XMLEncryptionException
XMLEncryptionExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.