|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes the various Crypto Algorithms that are handed out by the Crypto Service.
Method Summary | |
java.lang.String |
encrypt(java.lang.String value)
Performs the actual encryption. |
void |
setCipher(java.lang.String cipher)
Algorithms that perform multiple ciphers get told with setCipher, which cipher to use. |
void |
setSeed(java.lang.String salt)
Allows the user to set a salt value whenever the algorithm is used. |
Method Detail |
public void setSeed(java.lang.String salt)
Algorithms that do not use a salt are allowed to ignore this parameter.
Algorithms must be able to deal with the null value as salt. They should treat it as "use a random salt".
salt
- The salt valuepublic java.lang.String encrypt(java.lang.String value) throws java.lang.Exception
value
- The value to be encrypted
java.lang.Exception
- various errors from the underlying ciphers.
The caller should catch them and report accordingly.public void setCipher(java.lang.String cipher)
cipher
- The cipher to use.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |