public class KeyStoreController extends TrustStoreController
trustStore
Constructor and Description |
---|
KeyStoreController(java.awt.Window ownerWindow)
This Initializes the KeyStoreController.
|
Modifier and Type | Method and Description |
---|---|
void |
createKeyStore(CertificateProperties certificateProperties,
java.io.File keyStoreFile,
java.lang.String keystorePassword,
java.lang.String validity)
This method allows the user to create a KeyStore and protect its
integrity with a password.
|
void |
editLonelyKeyEntry(java.lang.String oldKeyAlias,
java.lang.String newKeyAlias,
java.lang.String newPassword,
java.lang.String oldPassword)
This method allows the user to change the password of the keystore
and also change the password and alias of a key entry,
which is the only entry in the store and has the same password as it,
both before and after the change.
|
void |
exportCertificate(java.lang.String alias,
java.lang.String certificatePath)
This method allows the user to export certificate from KeyStore.
|
void |
exportCertificate(java.lang.String alias,
java.lang.String certificatePath,
boolean fullPath)
This method allows the user to export certificate from KeyStore.
|
void |
printAliasesList(java.lang.String keyPasswd) |
addCertificate, addCertificateToTrustStore, addTableModelRow, changeAlias, changeTrustStorePassword, clearTableModel, createTrustStore, deleteCertificateFromTrustStore, getCertificate, getCertificateProperties, getFirstCertificateProperties, getKeyStore, getTableModel, getTrustedCertificatesList, getTrustStorePassword, init, isInitialized, openTrustStore, openTrustStoreFromStream, saveTrustStore, saveTrustStore, setOwnerWindow, setTrustStorePassword
public KeyStoreController(java.awt.Window ownerWindow)
ownerWindow
- the owner windowpublic void createKeyStore(CertificateProperties certificateProperties, java.io.File keyStoreFile, java.lang.String keystorePassword, java.lang.String validity)
certificateProperties
- the certificate propertieskeyStoreFile
- the key store filekeystorePassword
- the keystore passwordvalidity
- the validitypublic void editLonelyKeyEntry(java.lang.String oldKeyAlias, java.lang.String newKeyAlias, java.lang.String newPassword, java.lang.String oldPassword)
oldKeyAlias
- the old aliasnewKeyAlias
- the new aliasnewPassword
- the new KeyStore passwordoldPassword
- the old KeyStore passwordpublic void exportCertificate(java.lang.String alias, java.lang.String certificatePath)
alias
- the aliascertificatePath
- the certificate pathpublic void exportCertificate(java.lang.String alias, java.lang.String certificatePath, boolean fullPath)
alias
- the aliascertificatePath
- the certificate pathfullPath
- if true, use the certificatePath as full file name+path, so also containing the filenamepublic void printAliasesList(java.lang.String keyPasswd)