public class KeyStoreFile extends Object
| Modifier and Type | Field and Description |
|---|---|
protected File |
file |
protected KeyStore |
keyStore |
| Constructor and Description |
|---|
KeyStoreFile() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
aliases()
Return the aliases of the items in the key store.
|
boolean |
deleteEntry(String alias)
Remove the key store entry at the given alias.
|
KeyStore.Entry |
getEntry(String alias)
Retrieve keystore entry, given the entry's alias.
|
boolean |
isKey(String alias) |
void |
save()
Save the keyStore to the original file and encrypt it with the original password.
|
void |
setEntry(String alias,
KeyStore.Entry entry)
Add a new entry to the keystore.
|
public List<String> aliases()
public boolean isKey(String alias)
public KeyStore.Entry getEntry(String alias)
alias - of the entry to retrievepublic void setEntry(String alias, KeyStore.Entry entry)
alias - of keystore entryentry - instancepublic boolean deleteEntry(String alias)
alias - the name of the entry in the keystorepublic void save()
This work is licensed under a Creative Commons Attribution 4.0 International License.