
public abstract class KeyManager extends Object
| Constructor and Description |
|---|
KeyManager() |
| Modifier and Type | Method and Description |
|---|---|
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)
Init the Manager from a list of filename Key, the key name is the
basename
minus the extension of the key's
type
|
void |
saveToFiles() |
void |
setKey(String name,
KeyObject keyObject)
Add or set a new key associated to the given name
|
public abstract KeyObject createKeyObject()
public List<String> initFromList(List<String> keys)
keys - public void saveToFiles()
throws CryptoException,
IOException
CryptoExceptionIOExceptionpublic 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 - ExceptionCopyright © 2009–2020 Waarp. All rights reserved.