|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.CryptoManager
public class CryptoManager
This class handles sensitive user data.
| Field Summary | |
|---|---|
private net.sourceforge.blowfishj.BlowfishEasy |
blowFish
|
private java.util.Hashtable |
crypta
|
private static CryptoManager |
instance
An instance of the CryptoManager |
static java.lang.String |
PROXY_DOMAIN_KEY
Unique key for the proxy domain (NTLM only) |
static java.lang.String |
PROXY_PASSWORD_KEY
Unique key for the proxy password |
static java.lang.String |
PROXY_USER_KEY
Unique key for the proxy username |
| Constructor Summary | |
|---|---|
private |
CryptoManager()
Called from the static factory Method |
| Method Summary | |
|---|---|
void |
addItem(java.lang.String key,
java.lang.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. |
java.lang.String |
getItem(java.lang.String key)
Get an item from the crypta. |
boolean |
hasItem(java.lang.String key)
Check if the crypta contains an item for the given key |
private void |
loadData()
Load the crypta from a file. |
java.lang.String |
loadProxyDomain()
Load the proxy Domain from the crypta. |
java.lang.String |
loadProxyPassword()
Load the proxy password from the crypta. |
java.lang.String |
loadProxyUser()
Load the proxy username from the crypta. |
void |
removeItem(java.lang.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 java.lang.String PROXY_DOMAIN_KEY
public static final java.lang.String PROXY_PASSWORD_KEY
public static final java.lang.String PROXY_USER_KEY
private static CryptoManager instance
private net.sourceforge.blowfishj.BlowfishEasy blowFish
private java.util.Hashtable crypta
| Constructor Detail |
|---|
private CryptoManager()
| Method Detail |
|---|
public static CryptoManager getInstance()
public void addItem(java.lang.String key,
java.lang.String value)
key - Unique key of the itemvalue - Value of the itempublic java.lang.String getItem(java.lang.String key)
key - Unique key of the item
public boolean hasItem(java.lang.String key)
key - Unique key of the item
public java.lang.String loadProxyDomain()
public java.lang.String loadProxyPassword()
public java.lang.String loadProxyUser()
public void removeItem(java.lang.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 | |||||||||