AMQP-783: Allow blank key/trust store passwords
JIRA: https://jira.spring.io/browse/AMQP-783 **Cherry-pick to 1.7.x**
This commit is contained in:
committed by
Artem Bilan
parent
d9a8d1c726
commit
127d6aabc7
@@ -69,6 +69,7 @@ import com.rabbitmq.client.impl.nio.NioParams;
|
||||
* @author Arnaud Cogoluègnes
|
||||
* @author Hareendran
|
||||
* @author Dominique Villard
|
||||
* @author Zachary DeLuca
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
@@ -648,11 +649,11 @@ public class RabbitConnectionFactoryBean extends AbstractFactoryBean<ConnectionF
|
||||
String keyStoreType = getKeyStoreType();
|
||||
String trustStoreType = getTrustStoreType();
|
||||
char[] keyPassphrase = null;
|
||||
if (StringUtils.hasText(keyStorePassword)) {
|
||||
if (keyStorePassword != null) {
|
||||
keyPassphrase = keyStorePassword.toCharArray();
|
||||
}
|
||||
char[] trustPassphrase = null;
|
||||
if (StringUtils.hasText(trustStorePassword)) {
|
||||
if (trustStorePassword != null) {
|
||||
trustPassphrase = trustStorePassword.toCharArray();
|
||||
}
|
||||
KeyManager[] keyManagers = null;
|
||||
|
||||
Reference in New Issue
Block a user