Package com.atlassian.bamboo.security
Class JmsSslManagementUtils
- java.lang.Object
-
- com.atlassian.bamboo.security.JmsSslManagementUtils
-
public class JmsSslManagementUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
BROKER_KEY_ALIAS
static String
BROKER_KEYSTORE
-
Constructor Summary
Constructors Constructor Description JmsSslManagementUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
isJmsKeystoreAutomaticManagementDisabled()
static @NotNull org.apache.activemq.broker.SslContext
newSslContext(KeyStore keyStore, char[] keyStorePassword)
-
-
-
Field Detail
-
BROKER_KEYSTORE
public static final String BROKER_KEYSTORE
- See Also:
- Constant Field Values
-
BROKER_KEY_ALIAS
public static final String BROKER_KEY_ALIAS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
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
public static Certificate getBrokerCertificate(KeyStore keyStore) throws KeyStoreException
- Throws:
KeyStoreException
-
createTrustStore
public static void createTrustStore(File trustStoreFile, Certificate certificate) throws KeyStoreException, IOException, CertificateException, NoSuchAlgorithmException, UnrecoverableKeyException
-
-