public class EncryptProperties extends CommonShell
The -f argument specifies the name of the properties file. If this param is not specified, the default "maximo.properties" will be encrypted.
The -k parameter specifies the directory of the properties file. There is no default.
The -z parameter is optional. When the -z param is specified, the original file is renamed *.properties_org and the new file will have the original filename. When this param is not specified, the original cleartext copy of the file is simply deleted.
listStreamDB2, doNotUpdateACTION, doNotUpdateALNDOMAIN, doNotUpdateAPPLICATIONAUTH, doNotUpdateAUTOKEY, doNotUpdateCONDITION, doNotUpdateCONTRACTPROPERTY, doNotUpdateCONTRACTTYPE, doNotUpdateCROSSOVERDOMAIN, doNotUpdateDOCTYPES, doNotUpdateLANGUAGE, doNotUpdateMAXAPPS, doNotUpdateMAXCONDDETAIL, doNotUpdateMAXCONTROLVALUE, doNotUpdateMAXDOMAIN, doNotUpdateMAXLOGAPPENDER, doNotUpdateMAXLOGGER, doNotUpdateMAXMENU, doNotUpdateMAXMESSAGES, doNotUpdateMAXMODULES, doNotUpdateMAXPROP, doNotUpdateMAXPROPVALUE, doNotUpdateMAXROLE, doNotUpdateMAXSEQUENCE, doNotUpdateMAXSERSECURITY, doNotUpdateMAXSERVICE, doNotUpdateMAXTABLEDOMAIN, doNotUpdateMAXVARS, doNotUpdateMAXVARTYPE, doNotUpdateMXCOLLAB, doNotUpdateMXCOLLABREF, doNotUpdateNUMERICDOMAIN, doNotUpdateNUMRANGEDOMAIN, doNotUpdatePORTLET, doNotUpdatePRICALC, doNotUpdateSECURITYRESTRICT, doNotUpdateSIGOPTION, doNotUpdateSYNONYMDOMAIN, doNotUpdateTAXTYPE, doNotUpdateWORKPRIORITY, doNotUpdateWORKTYPE, doNotUpdateWPEDITSETTING, messageCache, NEWONLY, OLDANDNEW, OLDONLY, ORACLE, SQLINET, SQLMICROSOFT, SQLSERVER, SYSDATATABLES, SYSTEMTABLES, UNKNOWN| Constructor and Description |
|---|
EncryptProperties()
This constructor does nothing.
|
EncryptProperties(MXServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
endSetupInstance(java.lang.String outdir,
java.lang.String outfile,
java.util.HashMap params)
|
static void |
main(java.lang.String[] argv)
Param -f = filename for properties file.
|
void |
process()
Encrypt the properties file
propFileIn. |
java.lang.String |
setupFromPropfile(java.lang.String propfile,
java.lang.String user,
java.lang.String password,
java.lang.String url,
java.lang.String rootDirName,
java.lang.String propdir)
CommonShell method overridden.
|
createOutfile, doCall, doDB2TextSearchCall, doSql, doSql, doSql, doSql, doWait, endProcess, endProcessInstance, endSetup, execRuntime, getDisplayMessage, getDisplayMessage, getOutfile, getOutstream, getProperty, getRootDirName, logSql, reformatForDB2, reformatForSqlsvr, setConnection, setDB2TextOutput, setup, setupInstance, setupNested, setupNestedInstance, setUserLangCode, showMsg, showMXException, showMXExceptionpublic EncryptProperties()
public EncryptProperties(MXServer server)
public void process()
throws java.lang.Exception
propFileIn.
Save as propFileOut.process in class CommonShelljava.lang.ExceptionconstructCipher(),
encryptProps(),
checkNewFile(),
renameFiles()public java.lang.String setupFromPropfile(java.lang.String propfile,
java.lang.String user,
java.lang.String password,
java.lang.String url,
java.lang.String rootDirName,
java.lang.String propdir)
throws java.lang.Exception
setupFromPropfile in class CommonShellpropfile - Name of properties fileuser - Username when not connecting via MXServer (optional). Must be a superuser.
Defaults to mxe.db.user.password - Password when not connecting via MXServer (optional). Must be a superuser.
Defaults to mxe.db.password.url - Database url (alias) (optional). Defaults to mxe.db.url.rootDirName - The name of the MXServer root directory.propdir - The name of the directory containing the properties file.java.lang.Exceptionpublic void endSetupInstance(java.lang.String outdir,
java.lang.String outfile,
java.util.HashMap params)
throws java.lang.Exception
endSetupInstance in class CommonShelloutdir - Not used.outfile - Not used.params - Parameters (see class javadocs).java.lang.Exceptionpublic static void main(java.lang.String[] argv)