com.funambol.email.util
Class TokenUtility
java.lang.Object
com.funambol.email.util.TokenUtility
public class TokenUtility
- extends java.lang.Object
Field Summary |
protected static com.funambol.framework.logging.FunambolLogger |
log
|
Method Summary |
static java.lang.String |
decryptPassword(java.lang.String encryptedPassword,
java.lang.String encryptionKey)
Decrypt a password. |
static java.lang.String |
encryptPassword(java.lang.String plain_text,
java.lang.String encryptionKey)
Encrypt a password. |
static java.lang.String |
getToken()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static com.funambol.framework.logging.FunambolLogger log
TokenUtility
public TokenUtility()
getToken
public static java.lang.String getToken()
encryptPassword
public static java.lang.String encryptPassword(java.lang.String plain_text,
java.lang.String encryptionKey)
throws java.lang.Exception
- Encrypt a password.
- Parameters:
plain_text
- the password to encryptencryptionKey
- the key to use in the encryption phase
- Returns:
- the encrypted password.
- Throws:
java.lang.Exception
decryptPassword
public static java.lang.String decryptPassword(java.lang.String encryptedPassword,
java.lang.String encryptionKey)
throws java.lang.Exception
- Decrypt a password.
- Parameters:
encryptedPassword
- the encrypted password, needing to be decryptedencryptionKey
-
- Returns:
- the original, plain text password
- Throws:
java.lang.Exception
Copyright © 2005-2006 Funambol.