Methods Summary |
---|
protected java.lang.String | encrypt(java.lang.String s)In real life this would use Java Cryptography
return "fjslkjlqj2TOP+SECRETkjlskl";
|
public java.lang.String | getPasswordCypher()
return passwordCypher;
|
public java.lang.String | getUserName()
return userName;
|
public void | setPassword(java.lang.String s)Save the clear text p/w in the object, it won't get serialized
So we must save the encryption! Encryption not shown here.
this.passwordClear = s;
passwordCypher = encrypt(passwordClear);
|
public void | setUserName(java.lang.String s)
this.userName = s;
|
public java.lang.String | toString()
return "MyData[" + userName + ",XXXXX]";
|