|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.strangelight.util.MyString
|
+--com.strangelight.db.Cryptword
An extension of MyString specifically for manipulating
encrypted passwords.
Cleartext| Constructor Summary | |
Cryptword()
|
|
Cryptword(Cleartext s)
Creates a new Cryptword object by encrypting the Cleartext string susing a secure one-way hash algorithm. |
|
Cryptword(Cryptword s)
|
|
| Method Summary | |
boolean |
equals(MyString compareTo)
Tests for equality between this Cryptword string
and another string. |
java.lang.String |
toString(int length)
Gets the first length characters of the encrypted
String. |
| Methods inherited from class com.strangelight.util.MyString |
concat, concat, concat, equals, getBytes, length, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Cryptword()
public Cryptword(Cleartext s)
susing a secure one-way hash algorithm.
Cleartext.toCryptword()public Cryptword(Cryptword s)
| Method Detail |
public boolean equals(MyString compareTo)
Cryptword string
and another string. The exact definition of "equality" depends
on the type of the compareTo string. If
compareTo is of type Cleartext, then
equals returns true if and only ifcompareTo.
Thus equals can be used to compare an encrypted
string with an unencrypted string, without explicitly encrypting
or decrypting either one. In other words,
s.toCryptword().equals(s) will always return
true.
(
equals in class MyStringcompareTo - An instance of MyString to compare to this one
for equality.
public java.lang.String toString(int length)
length characters of the encrypted
String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||