|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.common.crypto.KeyManager
public abstract class KeyManager

This class implements a simple Key Manager from name
| Constructor Summary | |
|---|---|
KeyManager()
|
|
| Method Summary | |
|---|---|
abstract KeyObject |
createKeyObject()
|
String |
crypt(String keyName,
String toBeCrypted)
One method to get the crypted String from the given string and key |
String |
decrypt(String keyName,
String toBeDecrypted)
One method to get the uncrypted String from the given crypted string and key |
KeyObject |
getKey(String name)
|
List<String> |
initFromList(List<String> keys,
String extension)
Init the Manager from a list of filename Key, the key name is the basename minus the extension |
void |
saveToFiles(String extension)
|
void |
setKey(String name,
KeyObject keyObject)
Add or set a new key associated to the given name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyManager()
| Method Detail |
|---|
public abstract KeyObject createKeyObject()
public List<String> initFromList(List<String> keys,
String extension)
keys - extension -
public void saveToFiles(String extension)
throws CryptoException,
IOException
CryptoException
IOException
public void setKey(String name,
KeyObject keyObject)
name - keyObject - public KeyObject getKey(String name)
name -
public String crypt(String keyName,
String toBeCrypted)
throws Exception
keyName - toBeCrypted -
Exception
public String decrypt(String keyName,
String toBeDecrypted)
throws Exception
keyName - toBeDecrypted -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||