|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.util.crypto.keymanage.FilePasswordConverter
public class FilePasswordConverter
Utility used to migrate encrypted passwords in a file from one key to another. This utility supports two types of files: XML (for connector bindings, VDBs, and config XMLs); and properties (for bootstrap properties, config preferences, and materialized view connection properties).
Field Summary | |
---|---|
protected java.util.List |
converted
|
protected java.util.List |
failedDecrypt
|
protected java.util.List |
failedEncrypt
|
static int |
FILE_TYPE_PROPERTIES
|
static int |
FILE_TYPE_VDB
|
static int |
FILE_TYPE_XML
|
Constructor Summary | |
---|---|
FilePasswordConverter(java.lang.String inputFile,
java.lang.String outputFile,
int fileType,
java.lang.String oldkeyFile,
java.lang.String newkeyFile)
|
Method Summary | |
---|---|
void |
convert()
|
void |
convertProperties()
decrypt and recrypt any properties that end with "PASSWORD" |
void |
convertVDB()
The .VDB file is in zip format, containing one *.DEF file in XML format. |
void |
convertXML()
Decrypt and recrypt any the text of any "Property" Elements with attribute "name" that ends with "PASSWORD" |
static void |
main(java.lang.String[] args)
Main method for running the utility. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FILE_TYPE_XML
public static final int FILE_TYPE_PROPERTIES
public static final int FILE_TYPE_VDB
protected java.util.List converted
protected java.util.List failedDecrypt
protected java.util.List failedEncrypt
Constructor Detail |
---|
public FilePasswordConverter(java.lang.String inputFile, java.lang.String outputFile, int fileType, java.lang.String oldkeyFile, java.lang.String newkeyFile)
Method Detail |
---|
public void convert() throws java.lang.Exception
java.lang.Exception
public void convertXML() throws java.lang.Exception
java.lang.Exception
public void convertVDB() throws java.lang.Exception
java.lang.Exception
public void convertProperties() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
printUsage()
for usage.
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |