public abstract class AbstractSerializer extends Object implements Serializer
String
s into Node
s and visa versa.
An abstract class for common Serializer functionalityModifier 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, wait
deserialize
protected AbstractSerializer(String canonAlg, boolean secureValidation) throws InvalidCanonicalizerException
InvalidCanonicalizerException
public byte[] serializeToByteArray(Element element) throws Exception
byte[]
representation of the specified
Element
.serializeToByteArray
in interface Serializer
element
- the Element
to serialize.byte[]
representation of the serilaized
Element
.Exception
public byte[] serializeToByteArray(NodeList content) throws Exception
byte[]
representation of the specified
NodeList
.serializeToByteArray
in interface Serializer
content
- the NodeList
to serialize.byte[]
representation of the serialized
NodeList
.Exception
protected static byte[] createContext(byte[] source, Node ctx) throws XMLEncryptionException
XMLEncryptionException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.