public final class XmlEncryptionExtensions
extends java.lang.Object
XmlEncryptionExtensions provides methods for encrypt data object to the given
file as xml and encoded into a hexadecimal String object| Modifier and Type | Method and Description |
|---|---|
static <T> void |
writeToFileAsXmlAndHex(java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
java.io.File file,
java.lang.String... allowTypesByWildcard)
Write the given data object to the given file as xml and encoded into a hexadecimal
String object. |
static <T> void |
writeToFileAsXmlAndHex(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
java.io.File file)
Write the given data object to the given file as xml and encoded into a hexadecimal
String object. |
static <T> void |
writeToFileAsXmlAndHex(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
java.io.File file,
java.lang.String charset)
Write the given data object to the given file as xml and encoded into a hexadecimal
String object. |
public static <T> void writeToFileAsXmlAndHex(java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
java.io.File file,
java.lang.String... allowTypesByWildcard)
throws java.io.IOException
String object.T - the generic type of the data objectaliases - the aliases for the XStream objectdata - the data to writefile - the file to writeallowTypesByWildcard - the allowed types by wildcardjava.io.IOException - Signals that an I/O exception has occurred.public static <T> void writeToFileAsXmlAndHex(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
java.io.File file)
throws java.io.IOException
String object.T - the generic type of the data objectxstream - the XStream objectaliases - the aliases for the XStream objectdata - the data to writefile - the file to writejava.io.IOException - Signals that an I/O exception has occurred.public static <T> void writeToFileAsXmlAndHex(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
java.io.File file,
java.lang.String charset)
throws java.io.IOException
String object.T - the generic type of the data objectxstream - the XStream objectaliases - the aliases for the XStream objectdata - the data to writefile - the file to writecharset - the charsetjava.io.IOException - Signals that an I/O exception has occurred.