Module org.apache.santuario.xmlsec
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
ConvertsStrings intoNodes and visa versa.
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.encryption.AbstractSerializer
secureValidation
-
-
Constructor Summary
Constructors Constructor Description DocumentSerializer(boolean secureValidation)DocumentSerializer(java.lang.String canonAlg, boolean secureValidation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Nodedeserialize(byte[] source, org.w3c.dom.Node ctx)private org.w3c.dom.Nodedeserialize(org.w3c.dom.Node ctx, java.io.InputStream inputStream)-
Methods inherited from class org.apache.xml.security.encryption.AbstractSerializer
createContext, serializeToByteArray, serializeToByteArray
-
-
-
-
Constructor Detail
-
DocumentSerializer
public DocumentSerializer(boolean secureValidation) throws InvalidCanonicalizerException- Throws:
InvalidCanonicalizerException
-
DocumentSerializer
public DocumentSerializer(java.lang.String canonAlg, boolean secureValidation) throws InvalidCanonicalizerException- Throws:
InvalidCanonicalizerException
-
-
Method Detail
-
deserialize
public org.w3c.dom.Node deserialize(byte[] source, org.w3c.dom.Node ctx) throws XMLEncryptionException, java.io.IOException- Parameters:
source-ctx-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionExceptionjava.io.IOException
-
deserialize
private org.w3c.dom.Node deserialize(org.w3c.dom.Node ctx, java.io.InputStream inputStream) throws XMLEncryptionException- Parameters:
ctx-inputStream-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionException
-
-