Class EncryptionXMLUtil
- java.lang.Object
-
- com.norconex.commons.lang.encrypt.EncryptionXMLUtil
-
@Deprecated public final class EncryptionXMLUtil extends Object
Deprecated.Since 2.0.0, useEncryptionKeysave/load methods.Utility methods for loading and saving
EncryptionKeywithIXMLConfigurableobjects or other XML-driven classes.- Since:
- 1.15.0
- Author:
- Pascal Essiembre
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EncryptionKeyloadFromXML(XML xml, String tagPrefix, EncryptionKey defaultKey)Deprecated.Convenience method for loading an encryption key from anXML.static EncryptionKeyloadFromXML(Reader in, String tagPrefix, EncryptionKey defaultKey)Deprecated.Convenience method for loading an encryption key from an XML reader.static voidsaveToXML(EnhancedXMLStreamWriter writer, String tagPrefix, EncryptionKey encryptionKey)Deprecated.Convenience method for saving an encryption key to anXMLStreamWriter.static voidsaveToXML(Writer writer, String tagPrefix, EncryptionKey encryptionKey)Deprecated.Convenience method for saving an encryption key to an XML writer.
-
-
-
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 readertagPrefix- 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 anXML.- Parameters:
xml- xml configurationtagPrefix- 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 writertagPrefix- Prefix of the XML tag names being saved. Ifnull, 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 anXMLStreamWriter.- Parameters:
writer- an XML writertagPrefix- Prefix of the XML tag names being saved. Ifnull, 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
-
-