Class XmlEncryptionExtensions
- java.lang.Object
-
- io.github.astrapi69.xml.crypto.file.XmlEncryptionExtensions
-
public final class XmlEncryptionExtensions extends java.lang.Object
The classXmlEncryptionExtensions
provides methods for encrypt data object to the given file as xml and encoded into a hexadecimalString
object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 hexadecimalString
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 hexadecimalString
object.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 hexadecimalString
object.
-
-
-
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.IOException
Write the given data object to the given file as xml and encoded into a hexadecimalString
object.- Type Parameters:
T
- the generic type of the data object- Parameters:
aliases
- the aliases for theXStream
objectdata
- 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.IOException
Write the given data object to the given file as xml and encoded into a hexadecimalString
object.- Type Parameters:
T
- the generic type of the data object- Parameters:
xstream
- theXStream
objectaliases
- the aliases for theXStream
objectdata
- 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.IOException
Write the given data object to the given file as xml and encoded into a hexadecimalString
object.- Type Parameters:
T
- the generic type of the data object- Parameters:
xstream
- theXStream
objectaliases
- the aliases for theXStream
objectdata
- the data to writefile
- the file to writecharset
- the charset- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
-