|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The EncryptedProperties interface represents a properties file where all the data is encrypted before it is added, and decrypted when it retrieved. This interface can be implemented in a number of ways, the simplest being extending Properties and overloading the getProperty and setProperty methods.
| Method Summary | |
java.lang.String |
getProperty(java.lang.String key)
Gets the property value from the encrypted store, decrypts it, and returns the plaintext value to the caller. |
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
Encrypts the plaintext property value and stores the ciphertext value in the encrypted store. |
| Method Detail |
public java.lang.String getProperty(java.lang.String key)
throws EncryptionException
key - the key
EncryptionException - the encryption exception
public java.lang.String setProperty(java.lang.String key,
java.lang.String value)
throws EncryptionException
key - the keyvalue - the value
EncryptionException - the encryption exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||