Class SmartKeystoreStorage
java.lang.Object
org.graylog.security.certutil.keystore.storage.SmartKeystoreStorage
- All Implemented Interfaces:
KeystoreStorage<KeystoreLocation>
-
Constructor Summary
ConstructorDescriptionSmartKeystoreStorage
(CertificatesService certificatesService, KeystoreContentMover keystoreContentMover) -
Method Summary
Modifier and TypeMethodDescriptionreadKeyStore
(KeystoreLocation location, char[] password) void
writeKeyStore
(KeystoreLocation location, KeyStore keyStore, char[] currentPassword, char[] newPassword)
-
Constructor Details
-
SmartKeystoreStorage
@Inject public SmartKeystoreStorage(CertificatesService certificatesService, KeystoreContentMover keystoreContentMover)
-
-
Method Details
-
writeKeyStore
public void writeKeyStore(KeystoreLocation location, KeyStore keyStore, char[] currentPassword, char[] newPassword) throws KeyStoreStorageException - Specified by:
writeKeyStore
in interfaceKeystoreStorage<KeystoreLocation>
- Throws:
KeyStoreStorageException
-
readKeyStore
public Optional<KeyStore> readKeyStore(KeystoreLocation location, char[] password) throws KeyStoreStorageException - Specified by:
readKeyStore
in interfaceKeystoreStorage<KeystoreLocation>
- Throws:
KeyStoreStorageException
-