com.ibm.ram.client
Class RAMPassword

java.lang.Object
  extended by com.ibm.ram.client.RAMPassword

public class RAMPassword
extends java.lang.Object

RAM secure password processing.

This is not totally secure. Users must secure where they place the password file or encrypted password. Otherwise someone could use it without knowing the real password. So this must be stored just as secure as real password.

Since:
7.5.1.2

Constructor Summary
RAMPassword(java.io.File passwordFile)
          Construct with a password file.
RAMPassword(java.lang.String encryptedPW)
          Construct with an encrypted password.
 
Method Summary
static void createPasswordFile(java.lang.String password, java.io.File passwordFile)
          Create a password file with given unencrypted password.
static java.lang.String getEncryptedPassword(java.lang.String password)
          Get the password encrypted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAMPassword

public RAMPassword(java.io.File passwordFile)
Construct with a password file.

Parameters:
passwordFile -
Since:
7.5.1.2

RAMPassword

public RAMPassword(java.lang.String encryptedPW)
Construct with an encrypted password.

Parameters:
encryptedPW -
Since:
7.5.1.2
Method Detail

getEncryptedPassword

public static java.lang.String getEncryptedPassword(java.lang.String password)
Get the password encrypted. This would be used if want to store in a different place than a standalone password file.

Would then use RAMPassword(String) to have internally unecrypted for use in RAMSession,

Parameters:
password -
Returns:
Since:
7.5.1.2

createPasswordFile

public static void createPasswordFile(java.lang.String password,
                                      java.io.File passwordFile)
                               throws RAMRuntimeException
Create a password file with given unencrypted password.

Parameters:
password - the password
passwordFile - the file to write to.
Throws:
RAMRuntimeException
Since:
7.5.1.2