Class TransformSerializer
- java.lang.Object
-
- org.apache.xml.security.encryption.AbstractSerializer
-
- org.apache.xml.security.encryption.TransformSerializer
-
- All Implemented Interfaces:
Serializer
public class TransformSerializer extends AbstractSerializer
ConvertsStrings intoNodes and visa versa. This requires Xalan to work properly.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.xml.transform.TransformerFactorytransformerFactory-
Fields inherited from class org.apache.xml.security.encryption.AbstractSerializer
canon, secureValidation
-
-
Constructor Summary
Constructors Constructor Description TransformSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Nodedeserialize(byte[] source, org.w3c.dom.Node ctx)org.w3c.dom.Nodedeserialize(java.lang.String source, org.w3c.dom.Node ctx)private org.w3c.dom.Nodedeserialize(org.w3c.dom.Node ctx, javax.xml.transform.Source source)-
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 org.w3c.dom.Node deserialize(byte[] source, org.w3c.dom.Node ctx) throws XMLEncryptionException, java.io.IOException- Specified by:
deserializein interfaceSerializer- Specified by:
deserializein classAbstractSerializer- Parameters:
source-ctx-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionExceptionjava.io.IOException
-
deserialize
public org.w3c.dom.Node deserialize(java.lang.String source, org.w3c.dom.Node ctx) throws XMLEncryptionException- Specified by:
deserializein classAbstractSerializer- Parameters:
source-ctx-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionException
-
deserialize
private org.w3c.dom.Node deserialize(org.w3c.dom.Node ctx, javax.xml.transform.Source source) throws XMLEncryptionException- Parameters:
ctx-source-- Returns:
- the Node resulting from the parse of the source
- Throws:
XMLEncryptionException
-
-