Class XmlDecryptionExtensions


  • public final class XmlDecryptionExtensions
    extends java.lang.Object
    The class XmlDecryptionExtensions provides methods for read an encrypted file and decrypt xml data.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T readFromFileAsXmlAndHex​(com.thoughtworks.xstream.XStream xstream, java.util.Map<java.lang.String,​java.lang.Class<?>> aliases, java.io.File selectedFile)
      Read from file the data object that was before saved as xml and encoded into a hexadecimal String object.
      static <T> T readFromFileAsXmlAndHex​(com.thoughtworks.xstream.XStream xstream, java.util.Map<java.lang.String,​java.lang.Class<?>> aliases, java.io.File selectedFile, java.lang.String charset)
      Read from file the data object that was before saved as xml and encoded into a hexadecimal String object.
      static <T> T readFromFileAsXmlAndHex​(java.util.Map<java.lang.String,​java.lang.Class<?>> aliases, java.io.File selectedFile, java.lang.String... allowTypesByWildcard)
      Read from file the data object that was before saved as xml and encoded into a hexadecimal String object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • readFromFileAsXmlAndHex

        public static <T> T readFromFileAsXmlAndHex​(java.util.Map<java.lang.String,​java.lang.Class<?>> aliases,
                                                    java.io.File selectedFile,
                                                    java.lang.String... allowTypesByWildcard)
                                             throws java.io.IOException,
                                                    org.apache.commons.codec.DecoderException
        Read from file the data object that was before saved as xml and encoded into a hexadecimal String object.
        Type Parameters:
        T - the generic type of the data object
        Parameters:
        aliases - the aliases for the XStream object
        selectedFile - the selected file to read
        allowTypesByWildcard - the allow types by wildcard
        Returns:
        the generic data object
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
        org.apache.commons.codec.DecoderException - is thrown if an odd number or illegal of characters is supplied
      • readFromFileAsXmlAndHex

        public static <T> T readFromFileAsXmlAndHex​(com.thoughtworks.xstream.XStream xstream,
                                                    java.util.Map<java.lang.String,​java.lang.Class<?>> aliases,
                                                    java.io.File selectedFile)
                                             throws java.io.IOException,
                                                    org.apache.commons.codec.DecoderException
        Read from file the data object that was before saved as xml and encoded into a hexadecimal String object.
        Type Parameters:
        T - the generic type of the data object
        Parameters:
        xstream - the XStream object
        aliases - the aliases for the XStream object
        selectedFile - the selected file to read
        Returns:
        the generic data object
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
        org.apache.commons.codec.DecoderException - is thrown if an odd number or illegal of characters is supplied
      • readFromFileAsXmlAndHex

        public static <T> T readFromFileAsXmlAndHex​(com.thoughtworks.xstream.XStream xstream,
                                                    java.util.Map<java.lang.String,​java.lang.Class<?>> aliases,
                                                    java.io.File selectedFile,
                                                    java.lang.String charset)
                                             throws java.io.IOException,
                                                    org.apache.commons.codec.DecoderException
        Read from file the data object that was before saved as xml and encoded into a hexadecimal String object.
        Type Parameters:
        T - the generic type of the data object
        Parameters:
        xstream - the XStream object
        aliases - the aliases for the XStream object
        selectedFile - the selected file to read
        charset - the charset
        Returns:
        the generic data object
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
        org.apache.commons.codec.DecoderException - is thrown if an odd number or illegal of characters is supplied