|
22 | 22 | * Builder class for configuring EntraID token authentication.
|
23 | 23 | * This class provides methods to set various configuration options for EntraID token authentication.
|
24 | 24 | * It extends the TokenAuthConfig.Builder class and implements AutoCloseable.
|
25 |
| - * |
| 25 | + * |
26 | 26 | * <p>Default values:</p>
|
27 | 27 | * <ul>
|
28 | 28 | * <li>DEFAULT_EXPIRATION_REFRESH_RATIO: 0.75F</li>
|
|
31 | 31 | * <li>DEFAULT_MAX_ATTEMPTS_TO_RETRY: 5</li>
|
32 | 32 | * <li>DEFAULT_DELAY_IN_MS_TO_RETRY: 100 (0.1 second)</li>
|
33 | 33 | * </ul>
|
34 |
| - * |
| 34 | + * |
35 | 35 | * <p>Configuration options:</p>
|
36 | 36 | * <ul>
|
37 | 37 | * <li>{@link #clientId(String)}: Sets the client ID.</li>
|
38 | 38 | * <li>{@link #secret(String)}: Sets the client secret and configures access with secret.</li>
|
39 |
| - * <li>{@link #key(PrivateKey, X509Certificate)}: Sets the private key and certificate, |
| 39 | + * <li>{@link #key(PrivateKey, X509Certificate)}: Sets the private key and certificate, |
40 | 40 | * and configures access with certificate.</li>
|
41 | 41 | * <li>{@link #authority(String)}: Sets the authority URL.</li>
|
42 | 42 | * <li>{@link #systemAssignedManagedIdentity()}: Configures system-assigned managed identity.</li>
|
43 |
| - * <li>{@link #userAssignedManagedIdentity(UserManagedIdentityType, String)}: |
| 43 | + * <li>{@link #userAssignedManagedIdentity(UserManagedIdentityType, String)}: |
44 | 44 | * Configures user-assigned managed identity.</li>
|
45 | 45 | * <li>{@link #customEntraIdAuthenticationSupplier(Supplier)}: Sets a custom authentication supplier.</li>
|
46 | 46 | * <li>{@link #scopes(Set)}: Sets the scopes for the token request.</li>
|
47 | 47 | * <li>{@link #tokenRequestExecTimeoutInMs(int)}: Sets the token request execution timeout in milliseconds.</li>
|
48 | 48 | * </ul>
|
49 |
| - * |
| 49 | + * |
50 | 50 | * <p>Usage:</p>
|
51 | 51 | * <pre>
|
52 | 52 | * {@code
|
|
58 | 58 | * .build();
|
59 | 59 | * }
|
60 | 60 | * </pre>
|
61 |
| - * |
| 61 | + * |
62 | 62 | * <p>Note:</p>
|
63 | 63 | * <ul>
|
64 | 64 | * <li>Only one of ServicePrincipal, ManagedIdentity or customEntraIdAuthenticationSupplier can be configured.</li>
|
|
67 | 67 | * For more information and details on how to use, please see:
|
68 | 68 | * <p>https://github.com/redis/jedis/blob/master/docs/advanced-usage.md#token-based-authentication
|
69 | 69 | * <p>https://github.com/redis/lettuce/blob/main/docs/user-guide/connecting-redis.md#microsoft-entra-id-authentication
|
70 |
| - * |
| 70 | + * |
71 | 71 | * @see TokenAuthConfig.Builder
|
72 | 72 | * @see AutoCloseable
|
73 |
| - * |
| 73 | + * |
74 | 74 | */
|
75 | 75 | public class EntraIDTokenAuthConfigBuilder extends TokenAuthConfig.Builder<EntraIDTokenAuthConfigBuilder>
|
76 | 76 | implements AutoCloseable {
|
@@ -187,7 +187,7 @@ public TokenAuthConfig build() {
|
187 | 187 | }
|
188 | 188 |
|
189 | 189 | @Override
|
190 |
| - public void close() throws Exception { |
| 190 | + public void close() { |
191 | 191 | clientId = null;
|
192 | 192 | secret = null;
|
193 | 193 | key = null;
|
|
0 commit comments