Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
ebb0ff86
Commit
ebb0ff86
authored
Apr 28, 2016
by
Dave Syer
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/1.3.x'
parents
c85948ac
9c0679b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
RabbitAutoConfiguration.java
...work/boot/autoconfigure/amqp/RabbitAutoConfiguration.java
+3
-0
RabbitProperties.java
...ngframework/boot/autoconfigure/amqp/RabbitProperties.java
+14
-0
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfiguration.java
View file @
ebb0ff86
...
@@ -109,6 +109,9 @@ public class RabbitAutoConfiguration {
...
@@ -109,6 +109,9 @@ public class RabbitAutoConfiguration {
RabbitProperties
.
Ssl
ssl
=
config
.
getSsl
();
RabbitProperties
.
Ssl
ssl
=
config
.
getSsl
();
if
(
ssl
.
isEnabled
())
{
if
(
ssl
.
isEnabled
())
{
factory
.
setUseSSL
(
true
);
factory
.
setUseSSL
(
true
);
if
(
ssl
.
getAlgorithm
()
!=
null
)
{
factory
.
setSslAlgorithm
(
ssl
.
getAlgorithm
());
}
factory
.
setKeyStore
(
ssl
.
getKeyStore
());
factory
.
setKeyStore
(
ssl
.
getKeyStore
());
factory
.
setKeyStorePassphrase
(
ssl
.
getKeyStorePassword
());
factory
.
setKeyStorePassphrase
(
ssl
.
getKeyStorePassword
());
factory
.
setTrustStore
(
ssl
.
getTrustStore
());
factory
.
setTrustStore
(
ssl
.
getTrustStore
());
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java
View file @
ebb0ff86
...
@@ -274,6 +274,12 @@ public class RabbitProperties {
...
@@ -274,6 +274,12 @@ public class RabbitProperties {
*/
*/
private
String
trustStorePassword
;
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
()
{
public
boolean
isEnabled
()
{
return
this
.
enabled
;
return
this
.
enabled
;
}
}
...
@@ -314,6 +320,14 @@ public class RabbitProperties {
...
@@ -314,6 +320,14 @@ public class RabbitProperties {
this
.
trustStorePassword
=
trustStorePassword
;
this
.
trustStorePassword
=
trustStorePassword
;
}
}
public
String
getAlgorithm
()
{
return
this
.
algorithm
;
}
public
void
setAlgorithm
(
String
sslAlgorithm
)
{
this
.
algorithm
=
sslAlgorithm
;
}
}
}
public
static
class
Cache
{
public
static
class
Cache
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment