public 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| Constructor and Description |
|---|
XmlEncryptionExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
writeToFileAsXmlAndHex(@NonNull java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
@NonNull 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(@NonNull com.thoughtworks.xstream.XStream xstream,
@NonNull java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
@NonNull 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(@NonNull com.thoughtworks.xstream.XStream xstream,
@NonNull java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
T data,
@NonNull 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(@NonNull
@NonNull com.thoughtworks.xstream.XStream xstream,
@NonNull
@NonNull java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
@NonNull
T data,
@NonNull
@NonNull 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(@NonNull
@NonNull com.thoughtworks.xstream.XStream xstream,
@NonNull
@NonNull java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
@NonNull
T data,
@NonNull
@NonNull 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.public static <T> void writeToFileAsXmlAndHex(@NonNull
@NonNull java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
@NonNull
T data,
@NonNull
@NonNull 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.