com.funambol.email.util
Class TokenUtility

java.lang.Object
  extended by com.funambol.email.util.TokenUtility

public class TokenUtility
extends java.lang.Object


Field Summary
protected static com.funambol.framework.logging.FunambolLogger log
           
 
Constructor Summary
TokenUtility()
           
 
Method Summary
static java.lang.String decryptPassword(java.lang.String encriptedPassword, java.lang.String encriptionKey)
          Decrypt a password.
static java.lang.String encryptPassword(java.lang.String plain_text, java.lang.String encriptionKey)
          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
 

Field Detail

log

protected static com.funambol.framework.logging.FunambolLogger log
Constructor Detail

TokenUtility

public TokenUtility()
Method Detail

getToken

public static java.lang.String getToken()

encryptPassword

public static java.lang.String encryptPassword(java.lang.String plain_text,
                                               java.lang.String encriptionKey)
                                        throws java.lang.Exception
Encrypt a password.

Parameters:
plain_text - the password to encrypt
encriptionKey - the key to use in the encryption phase
Throws:
java.lang.Exception

decryptPassword

public static java.lang.String decryptPassword(java.lang.String encriptedPassword,
                                               java.lang.String encriptionKey)
                                        throws java.lang.Exception
Decrypt a password.

Parameters:
encryptedPassword - the encrypted password, needing to be decrypted
Returns:
the original, plain text password
Throws:
java.lang.Exception


Copyright © 2005-2006 Funambol.