Skip to content

Commit 380f2f5

Browse files
committed
More OAuth 2 settings
1 parent f53bba4 commit 380f2f5

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public interface ConnectionSettings<T> {
161161
*
162162
* @return OAuth 2 settings
163163
* @see OAuth2Settings
164+
* @since 0.4.0
164165
*/
165166
OAuth2Settings<? extends T> oauth2();
166167

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* <p>OAuth 2 requires RabbitMQ 4.1 or more.
2727
*
2828
* @param <T> the type of object returned by methods, usually the object itself
29+
* @since 0.4.0
2930
*/
3031
public interface OAuth2Settings<T> {
3132

src/main/java/com/rabbitmq/client/amqp/oauth2/TokenCredentialsManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
import org.slf4j.Logger;
3838
import org.slf4j.LoggerFactory;
3939

40+
/**
41+
* Credentials manager implementation that requests and refreshes tokens.
42+
*
43+
* <p>It also keeps track of registration and update them with refreshed tokens when appropriate.
44+
*/
4045
public final class TokenCredentialsManager implements CredentialsManager {
4146

4247
public static final Function<Instant, Duration> DEFAULT_REFRESH_DELAY_STRATEGY =

0 commit comments

Comments
 (0)