Interface KeystoreEditorMBean
- All Known Implementing Classes:
KeystoreEditor
public interface KeystoreEditorMBean
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrivateKey(String alias, String keyPassword, String storePassword, String data, String type, String fileName) voidaddTrustedCertificate(String alias, String keyPassword, String storePassword, String data, String type, String fileName) certificateDetails(String url) voiddeletePrivateKey(String alias) voiddeleteTrustedCertificate(String alias) replaceSystemStores(String fqdn, String keyPassword, String keystorePassword, String keystoreData, String keystoreFileName, String truststorePassword, String truststoreData, String truststoreFileName) Replaces the system stores (keystore and truststore) with the passed in stores.
-
Method Details
-
getKeystore
-
getTruststore
-
addPrivateKey
-
addTrustedCertificate
-
addTrustedCertificateFromUrl
-
certificateDetails
-
replaceSystemStores
List<String> replaceSystemStores(String fqdn, String keyPassword, String keystorePassword, String keystoreData, String keystoreFileName, String truststorePassword, String truststoreData, String truststoreFileName) throws KeystoreEditor.KeystoreEditorException Replaces the system stores (keystore and truststore) with the passed in stores. All entries in the current stores will be lost.- Parameters:
fqdn- fully qualified domain name used to validate the keystore. The keystore must contain a key with an alias matching the fqdnkeyPassword- password for private keykeystorePassword- password for the keystoreDatakeystoreData- keystore file data (base 64 encoded)keystoreFileName- keystore filenametruststorePassword- password for the truststoreDatatruststoreData- truststore file data (base 64 encoded)truststoreFileName- truststore filename- Returns:
- Returns a list containing any error messages. If call was successfull this will be an empty list.
- Throws:
KeystoreEditor.KeystoreEditorException
-
deletePrivateKey
-
deleteTrustedCertificate
-