EncryptionKey
save/load methods.@Deprecated public final class EncryptionXMLUtil extends Object
Utility methods for loading and saving EncryptionKey
with
IXMLConfigurable
objects or other XML-driven classes.
Modifier and Type | Method and Description |
---|---|
static EncryptionKey |
loadFromXML(Reader in,
String tagPrefix,
EncryptionKey defaultKey)
Deprecated.
Convenience method for loading an encryption key from an XML reader.
|
static EncryptionKey |
loadFromXML(XML xml,
String tagPrefix,
EncryptionKey defaultKey)
Deprecated.
Convenience method for loading an encryption key from an
XML . |
static void |
saveToXML(EnhancedXMLStreamWriter writer,
String tagPrefix,
EncryptionKey encryptionKey)
Deprecated.
Convenience method for saving an encryption key to an
XMLStreamWriter . |
static void |
saveToXML(Writer writer,
String tagPrefix,
EncryptionKey encryptionKey)
Deprecated.
Convenience method for saving an encryption key to an XML writer.
|
public static EncryptionKey loadFromXML(Reader in, String tagPrefix, EncryptionKey defaultKey)
in
- an XML readertagPrefix
- prefix of the XML tag names being loaded.defaultKey
- default encryption keyIXMLConfigurable
public static EncryptionKey loadFromXML(XML xml, String tagPrefix, EncryptionKey defaultKey)
XML
.xml
- xml configurationtagPrefix
- prefix of the XML tag names being loaded.defaultKey
- default encryption keyIXMLConfigurable
public static void saveToXML(Writer writer, String tagPrefix, EncryptionKey encryptionKey) throws IOException
writer
- a writertagPrefix
- 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 saveIOException
- problem saving to XMLIXMLConfigurable
public static void saveToXML(EnhancedXMLStreamWriter writer, String tagPrefix, EncryptionKey encryptionKey) throws IOException
XMLStreamWriter
.writer
- an XML writertagPrefix
- 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 saveIOException
- problem saving to XMLIXMLConfigurable
Copyright © 2008–2023 Norconex Inc.. All rights reserved.