Class EncryptionXMLUtil

    • Method Detail

      • loadFromXML

        public static EncryptionKey loadFromXML​(Reader in,
                                                String tagPrefix,
                                                EncryptionKey defaultKey)
        Deprecated.
        Convenience method for loading an encryption key from an XML reader.
        Parameters:
        in - an XML reader
        tagPrefix - prefix of the XML tag names being loaded.
        defaultKey - default encryption key
        Returns:
        encryption key
        See Also:
        IXMLConfigurable
      • loadFromXML

        public static EncryptionKey loadFromXML​(XML xml,
                                                String tagPrefix,
                                                EncryptionKey defaultKey)
        Deprecated.
        Convenience method for loading an encryption key from an XML.
        Parameters:
        xml - xml configuration
        tagPrefix - prefix of the XML tag names being loaded.
        defaultKey - default encryption key
        Returns:
        encryption key
        See Also:
        IXMLConfigurable
      • saveToXML

        public static void saveToXML​(Writer writer,
                                     String tagPrefix,
                                     EncryptionKey encryptionKey)
                              throws IOException
        Deprecated.
        Convenience method for saving an encryption key to an XML writer.
        Parameters:
        writer - a writer
        tagPrefix - Prefix of the XML tag names being saved. If null, no prefix is used (not recommended unless wrapped in a parent tag).
        encryptionKey - the encryption key to save
        Throws:
        IOException - problem saving to XML
        See Also:
        IXMLConfigurable
      • saveToXML

        public static void saveToXML​(EnhancedXMLStreamWriter writer,
                                     String tagPrefix,
                                     EncryptionKey encryptionKey)
                              throws IOException
        Deprecated.
        Convenience method for saving an encryption key to an XMLStreamWriter.
        Parameters:
        writer - an XML writer
        tagPrefix - Prefix of the XML tag names being saved. If null, no prefix is used (not recommended unless wrapped in a parent tag).
        encryptionKey - the encryption key to save
        Throws:
        IOException - problem saving to XML
        See Also:
        IXMLConfigurable