com.isti.quakewatch.util
Class QWPasswordUtils

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

public class QWPasswordUtils
extends java.lang.Object

Class QWPasswordUtils contains a collection of static utility fields and methods for QuakeWatch passwords.


Method Summary
static java.lang.String createEncPwd(java.lang.String memEncKey, java.lang.String standardPwd)
          Creates an encoded password.
static java.lang.String createMemEncKey(java.lang.String localHostNameString, java.lang.String localHostIPString)
          Creates a memory encryption key.
static java.lang.String createStandardPwd(java.lang.String usernameText, java.lang.String passwordText)
          Creates a standard password.
static java.lang.String createTransEncPwd(java.lang.String memEncKey, java.lang.String encPwd)
          Creates a transmit encoded password.
static java.lang.String encode(java.lang.String keyText, java.lang.String original)
          Encodes the specified key and text.
static java.lang.String encrypt(java.lang.String original)
          Encrypts the specified text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createEncPwd

public static java.lang.String createEncPwd(java.lang.String memEncKey,
                                            java.lang.String standardPwd)
Creates an encoded password.

Parameters:
memEncKey - the memory encryption key or null if none.
standardPwd - the standard password.
Returns:
the encoded password.

createMemEncKey

public static java.lang.String createMemEncKey(java.lang.String localHostNameString,
                                               java.lang.String localHostIPString)
Creates a memory encryption key.

Parameters:
localHostNameString - the host name.
localHostIPString - the IP Address.
Returns:
the memory encryption key.

createStandardPwd

public static java.lang.String createStandardPwd(java.lang.String usernameText,
                                                 java.lang.String passwordText)
Creates a standard password.

Parameters:
usernameText - the username text.
passwordText - the password text to encrypt.
Returns:
the standard password.

createTransEncPwd

public static java.lang.String createTransEncPwd(java.lang.String memEncKey,
                                                 java.lang.String encPwd)
Creates a transmit encoded password.

Parameters:
memEncKey - the memory encryption key or null if none.
encPwd - the encoded password.
Returns:
the transmit encoded password.

encode

public static java.lang.String encode(java.lang.String keyText,
                                      java.lang.String original)
Encodes the specified key and text.

Parameters:
keyText - the key text.
original - the text to encrypt.
Returns:
the key and text encoded.

encrypt

public static java.lang.String encrypt(java.lang.String original)
Encrypts the specified text.

Parameters:
original - the text to encrypt.
Returns:
the text encrypted.