Package com.atlassian.bamboo.security
Class JmsSslManagementUtils
java.lang.Object
com.atlassian.bamboo.security.JmsSslManagementUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createTrustStore
(File trustStoreFile, Certificate certificate) static String
decodePassword
(String encryptedValue) static Certificate
getBrokerCertificate
(KeyStore keyStore) static @NotNull KeyStore
getBrokerKeyStore
(KeyStoreFactory keyStoreFactory) static @NotNull KeyStore
getBrokerKeyStore
(KeyStoreFactory keyStoreFactory, char[] keystoreAndKeyPassword) static @NotNull KeyStore
getClientKeyStore
(File file, KeyStoreFactory keyStoreFactory, char[] keystoreAndKeyPassword) static boolean
static @NotNull org.apache.activemq.broker.SslContext
newSslContext
(KeyStore keyStore, char[] keyStorePassword)
-
Field Details
-
BROKER_KEYSTORE
- See Also:
-
BROKER_KEY_ALIAS
- See Also:
-
-
Constructor Details
-
JmsSslManagementUtils
public JmsSslManagementUtils()
-
-
Method Details
-
getBrokerKeyStore
@NotNull public static @NotNull KeyStore getBrokerKeyStore(KeyStoreFactory keyStoreFactory, char[] keystoreAndKeyPassword) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException -
getClientKeyStore
@NotNull public static @NotNull KeyStore getClientKeyStore(File file, KeyStoreFactory keyStoreFactory, char[] keystoreAndKeyPassword) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException -
getBrokerKeyStore
@NotNull public static @NotNull KeyStore getBrokerKeyStore(KeyStoreFactory keyStoreFactory) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException -
decodePassword
-
newSslContext
@NotNull public static @NotNull org.apache.activemq.broker.SslContext newSslContext(KeyStore keyStore, char[] keyStorePassword) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException -
isJmsKeystoreAutomaticManagementDisabled
public static boolean isJmsKeystoreAutomaticManagementDisabled() -
getBrokerCertificate
- Throws:
KeyStoreException
-
createTrustStore
public static void createTrustStore(File trustStoreFile, Certificate certificate) throws KeyStoreException, IOException, CertificateException, NoSuchAlgorithmException, UnrecoverableKeyException
-