Package com.atlassian.bamboo.security
Class BCKeyStoreFactory
java.lang.Object
com.atlassian.bamboo.security.BCKeyStoreFactory
- All Implemented Interfaces:
KeyStoreFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull KeyStore
generateKeyStore
(String keyAlias, @NotNull String commonName, @org.jetbrains.annotations.Nullable char[] keystorePassword, @org.jetbrains.annotations.NotNull char[] keyPassword) @NotNull KeyStore
loadKeyStore
(@NotNull File file, @org.jetbrains.annotations.NotNull char[] password)
-
Constructor Details
-
BCKeyStoreFactory
public BCKeyStoreFactory()
-
-
Method Details
-
generateKeyStore
@NotNull public @NotNull KeyStore generateKeyStore(String keyAlias, @NotNull @NotNull String commonName, @Nullable @org.jetbrains.annotations.Nullable char[] keystorePassword, @NotNull @org.jetbrains.annotations.NotNull char[] keyPassword) throws KeyStoreException, CertificateException - Specified by:
generateKeyStore
in interfaceKeyStoreFactory
- Throws:
KeyStoreException
CertificateException
-
loadKeyStore
@NotNull public @NotNull KeyStore loadKeyStore(@NotNull @NotNull File file, @NotNull @org.jetbrains.annotations.NotNull char[] password) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException - Specified by:
loadKeyStore
in interfaceKeyStoreFactory
- Throws:
KeyStoreException
IOException
NoSuchAlgorithmException
CertificateException
-