|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.CryptoManager
This class handles sensitive user data.
Field Summary | |
private net.sourceforge.blowfishj.BlowfishEasy |
blowFish
|
private Hashtable |
crypta
|
private static CryptoManager |
instance
An instance of the CryptoManager |
static String |
PROXY_DOMAIN_KEY
Unique key for the proxy domain (NTLM only) |
static String |
PROXY_PASSWORD_KEY
Unique key for the proxy password |
static String |
PROXY_USER_KEY
Unique key for the proxy username |
Constructor Summary | |
private |
CryptoManager()
Called from the static factory Method |
Method Summary | |
void |
addItem(String key,
String value)
Add an item to the crypta. |
private void |
decryptData()
Decrypt the crypta. |
private void |
encryptData()
Encrypt the crypta. |
static CryptoManager |
getInstance()
Instantiate a new CryptoManager when this method is called the first time and return it. |
String |
getItem(String key)
Get an item from the crypta. |
boolean |
hasItem(String key)
Check if the crypta contains an item for the given key |
private void |
loadData()
Load the crypta from a file. |
String |
loadProxyDomain()
Load the proxy Domain from the crypta. |
String |
loadProxyPassword()
Load the proxy password from the crypta. |
String |
loadProxyUser()
Load the proxy username from the crypta. |
void |
removeItem(String key)
Remove an item from the crapty. |
void |
saveData()
Save the crypta to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PROXY_DOMAIN_KEY
public static final String PROXY_PASSWORD_KEY
public static final String PROXY_USER_KEY
private static CryptoManager instance
private net.sourceforge.blowfishj.BlowfishEasy blowFish
private Hashtable crypta
Constructor Detail |
private CryptoManager()
Method Detail |
public static CryptoManager getInstance()
public void addItem(String key, String value)
key
- Unique key of the itemvalue
- Value of the itempublic String getItem(String key)
key
- Unique key of the item
public boolean hasItem(String key)
key
- Unique key of the item
public String loadProxyDomain()
public String loadProxyPassword()
public String loadProxyUser()
public void removeItem(String key)
key
- Unique key of the item.public void saveData()
private void decryptData()
private void encryptData()
private void loadData()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |