|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--server.services.Crypt
Encryption/decryption class
Constructor Summary | |
Crypt(String user)
|
Method Summary | |
String |
decrypt(String str)
convenience method for encrypting a string. |
String |
encrypt(char[] c)
Method encrypt. |
String |
encrypt(String str)
convenience method for encrypting a string. |
void |
init(char[] pass,
byte[] salt,
int iterations)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Crypt(String user) throws SecurityException
Method Detail |
public void init(char[] pass, byte[] salt, int iterations) throws SecurityException
SecurityException
public String encrypt(String str) throws SecurityException
str
- Description of the Parameter
SecurityException
- Description of the Exceptionpublic String decrypt(String str) throws SecurityException
str
- Description of the Parameter
SecurityException
- Description of the Exceptionpublic String encrypt(char[] c)
c
-
|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |