Skip to content

Commit 820921c

Browse files
committed
Mention OAuth 2 requires RabbitMQ 4.1
1 parent a124e15 commit 820921c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/main/java/com/rabbitmq/client/amqp/ConnectionSettings.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,14 @@ public interface ConnectionSettings<T> {
154154
*/
155155
Affinity<? extends T> affinity();
156156

157+
/**
158+
* OAuth 2 settings.
159+
*
160+
* <p>OAuth 2 requires RabbitMQ 4.1 or more.
161+
*
162+
* @return OAuth 2 settings
163+
* @see OAuth2Settings
164+
*/
157165
OAuth2Settings<? extends T> oauth2();
158166

159167
/**

src/main/java/com/rabbitmq/client/amqp/OAuth2Settings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* Configuration to retrieve a token using the <a
2424
* href="https://tools.ietf.org/html/rfc6749#section-4.4">OAuth 2 Client Credentials flow</a>.
2525
*
26+
* <p>OAuth 2 requires RabbitMQ 4.1 or more.
27+
*
2628
* @param <T> the type of object returned by methods, usually the object itself
2729
*/
2830
public interface OAuth2Settings<T> {

0 commit comments

Comments
 (0)