Class XmlEncryptionExtensions
- java.lang.Object
-
- io.github.astrapi69.xml.crypto.file.XmlEncryptionExtensions
-
public final class XmlEncryptionExtensions extends java.lang.ObjectThe classXmlEncryptionExtensionsprovides methods for encrypt data object to the given file as xml and encoded into a hexadecimalStringobject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> voidwriteToFileAsXmlAndHex(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 hexadecimalStringobject.static <T> voidwriteToFileAsXmlAndHex(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 hexadecimalStringobject.static <T> voidwriteToFileAsXmlAndHex(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 hexadecimalStringobject.
-
-
-
Method Detail
-
writeToFileAsXmlAndHex
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.IOExceptionWrite the given data object to the given file as xml and encoded into a hexadecimalStringobject.- Type Parameters:
T- the generic type of the data object- Parameters:
aliases- the aliases for theXStreamobjectdata- the data to writefile- the file to writeallowTypesByWildcard- the allowed types by wildcard- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
writeToFileAsXmlAndHex
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.IOExceptionWrite the given data object to the given file as xml and encoded into a hexadecimalStringobject.- Type Parameters:
T- the generic type of the data object- Parameters:
xstream- theXStreamobjectaliases- the aliases for theXStreamobjectdata- the data to writefile- the file to write- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
writeToFileAsXmlAndHex
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.IOExceptionWrite the given data object to the given file as xml and encoded into a hexadecimalStringobject.- Type Parameters:
T- the generic type of the data object- Parameters:
xstream- theXStreamobjectaliases- the aliases for theXStreamobjectdata- the data to writefile- the file to writecharset- the charset- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
-