|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Simplified interface for reversable string encryption used in messaging and other applications. Refer to the implementing class docs for details.
| Method Summary | |
java.lang.String |
decrypt(AuthUser user,
java.lang.String cyphertext)
Decrypt the cyphertext and return the plaintext. |
java.lang.String |
encrypt(AuthUser user,
java.lang.String plaintext)
Encrypt the plaintext and return the cyphertext. |
long |
getCypherUserID(java.lang.String cyphertext)
Return the uniqueID of the user who encrypted this cyphertext. |
| Method Detail |
public java.lang.String encrypt(AuthUser user,
java.lang.String plaintext)
throws SandEncryptorException
SandEncryptorException
public java.lang.String decrypt(AuthUser user,
java.lang.String cyphertext)
throws SandEncryptorException
SandEncryptorException
public long getCypherUserID(java.lang.String cyphertext)
throws SandEncryptorException
This method may throw, or return zero, if the implementation is being used only to secure a communications channel, and the required decryption information is already known or is unused.
SandEncryptorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||