public interface KeyStoreHandler
| Modifier and Type | Method and Description |
|---|---|
KeyStore |
createKeyStore(String subject)
Create an empty keystore -
|
KeyStoreWrapper[] |
getLoadedKeyStores()
Get all active loaded key stores.
|
KeyStoreWrapper |
loadKeyStore(File filename,
KeyStoreType type,
char[] password) |
void |
saveKeyStore(KeyStoreWrapper wrapper,
char[] password)
Write a keystore to disk.
|
void |
saveKeyStoreAs(KeyStoreWrapper wrapper,
File newFileName,
char[] password)
Write a keystore to disk, using another name for the file than the file
used to load the keystore.
|
KeyStore createKeyStore(String subject)
subject - The name of the keystore.KeyStoreWrapper loadKeyStore(File filename, KeyStoreType type, char[] password) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException
KeyStoreWrapper[] getLoadedKeyStores()
void saveKeyStore(KeyStoreWrapper wrapper, char[] password) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException
wrapper - The keystore to save.password - The integrity check password.KeyStoreExceptionNoSuchAlgorithmExceptionCertificateExceptionIOExceptionvoid saveKeyStoreAs(KeyStoreWrapper wrapper, File newFileName, char[] password) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException
wrapper - The keystore to write to disk.newFileName - The filename to use.password - KeyStoreExceptionNoSuchAlgorithmExceptionCertificateExceptionIOExceptionCopyright © 2012. All Rights Reserved.