Merge remote-tracking branch 'origin/1.3.x'

pull/5730/head
Dave Syer 9 years ago
commit ebb0ff8638

@ -109,6 +109,9 @@ public class RabbitAutoConfiguration {
RabbitProperties.Ssl ssl = config.getSsl();
if (ssl.isEnabled()) {
factory.setUseSSL(true);
if (ssl.getAlgorithm() != null) {
factory.setSslAlgorithm(ssl.getAlgorithm());
}
factory.setKeyStore(ssl.getKeyStore());
factory.setKeyStorePassphrase(ssl.getKeyStorePassword());
factory.setTrustStore(ssl.getTrustStore());

@ -274,6 +274,12 @@ public class RabbitProperties {
*/
private String trustStorePassword;
/**
* The SSL algorithm to use (e.g. TLSv1.1). Default is set automatically by the
* rabbit client library.
*/
private String algorithm;
public boolean isEnabled() {
return this.enabled;
}
@ -314,6 +320,14 @@ public class RabbitProperties {
this.trustStorePassword = trustStorePassword;
}
public String getAlgorithm() {
return this.algorithm;
}
public void setAlgorithm(String sslAlgorithm) {
this.algorithm = sslAlgorithm;
}
}
public static class Cache {

Loading…
Cancel
Save