com.isti.quakewatch.util
Class LoginInfoFileProc

java.lang.Object
  extended by com.isti.quakewatch.util.LoginInfoFileProc

public class LoginInfoFileProc
extends java.lang.Object

Class LoginInfoFileProc processes a file containing server-login information. If a 'password' or 'stdEncPassword' item is given then it is converted to an 'encryptedPassword' item and the file is updated.


Field Summary
protected  CfgPropItem encryptedPasswordProp
          Encrypted-password property for login-information file.
protected  CfgProperties infoCfgProps
          Table of config-prop items for the login-information file.
protected  CfgPropItem passwordProp
          Plain-text-password property for login-information file.
protected  boolean processSuccessFlag
          Flag set true if login-info file processed successfully.
protected  CfgPropItem stdEncPasswordProp
          Standard-encoded-password property for login-information file.
protected  CfgPropItem usernameProp
          Username property for login-information file.
 
Constructor Summary
LoginInfoFileProc(java.lang.String fNameStr, CfgPropItem serverLoginProp, LogFile logObj)
          Creates a login-information-file processor.
 
Method Summary
 boolean getProcessSuccessFlag()
          Returns an indicator of whether or data was successfully loaded and processed from the login-information file.
static boolean process(java.lang.String fNameStr, CfgPropItem serverLoginProp, LogFile logObj)
          Process a login-information file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processSuccessFlag

protected boolean processSuccessFlag
Flag set true if login-info file processed successfully.


infoCfgProps

protected final CfgProperties infoCfgProps
Table of config-prop items for the login-information file.


usernameProp

protected final CfgPropItem usernameProp
Username property for login-information file.


passwordProp

protected final CfgPropItem passwordProp
Plain-text-password property for login-information file.


stdEncPasswordProp

protected final CfgPropItem stdEncPasswordProp
Standard-encoded-password property for login-information file.


encryptedPasswordProp

protected final CfgPropItem encryptedPasswordProp
Encrypted-password property for login-information file.

Constructor Detail

LoginInfoFileProc

public LoginInfoFileProc(java.lang.String fNameStr,
                         CfgPropItem serverLoginProp,
                         LogFile logObj)
Creates a login-information-file processor.

Parameters:
fNameStr - the name of the login-information file to use.
serverLoginProp - the server-login-cfg-prop item to update, or null for none.
logObj - the 'LogFile' object to use, or null for no log output.
Method Detail

getProcessSuccessFlag

public boolean getProcessSuccessFlag()
Returns an indicator of whether or data was successfully loaded and processed from the login-information file.

Returns:
true if data was successfully loaded and processed from the login-information file; false if not.

process

public static boolean process(java.lang.String fNameStr,
                              CfgPropItem serverLoginProp,
                              LogFile logObj)
Process a login-information file.

Parameters:
fNameStr - the name of the login-information file to use.
serverLoginProp - the server-login-cfg-prop item to update, or null for none.
logObj - the 'LogFile' object to use, or null for no log output.
Returns:
true if data was successfully loaded and processed from the login-information file; false if not.