junit
diff --git a/entraid/src/main/java/redis/clients/authentication/entraid/EntraIDTokenAuthConfigBuilder.java b/entraid/src/main/java/redis/clients/authentication/entraid/EntraIDTokenAuthConfigBuilder.java
index bbd8224..a6bf04f 100644
--- a/entraid/src/main/java/redis/clients/authentication/entraid/EntraIDTokenAuthConfigBuilder.java
+++ b/entraid/src/main/java/redis/clients/authentication/entraid/EntraIDTokenAuthConfigBuilder.java
@@ -22,7 +22,7 @@
* Builder class for configuring EntraID token authentication.
* This class provides methods to set various configuration options for EntraID token authentication.
* It extends the TokenAuthConfig.Builder class and implements AutoCloseable.
- *
+ *
* Default values:
*
* - DEFAULT_EXPIRATION_REFRESH_RATIO: 0.75F
@@ -31,22 +31,22 @@
* - DEFAULT_MAX_ATTEMPTS_TO_RETRY: 5
* - DEFAULT_DELAY_IN_MS_TO_RETRY: 100 (0.1 second)
*
- *
+ *
* Configuration options:
*
* - {@link #clientId(String)}: Sets the client ID.
* - {@link #secret(String)}: Sets the client secret and configures access with secret.
- * - {@link #key(PrivateKey, X509Certificate)}: Sets the private key and certificate,
+ *
- {@link #key(PrivateKey, X509Certificate)}: Sets the private key and certificate,
* and configures access with certificate.
* - {@link #authority(String)}: Sets the authority URL.
* - {@link #systemAssignedManagedIdentity()}: Configures system-assigned managed identity.
- * - {@link #userAssignedManagedIdentity(UserManagedIdentityType, String)}:
+ *
- {@link #userAssignedManagedIdentity(UserManagedIdentityType, String)}:
* Configures user-assigned managed identity.
* - {@link #customEntraIdAuthenticationSupplier(Supplier)}: Sets a custom authentication supplier.
* - {@link #scopes(Set)}: Sets the scopes for the token request.
* - {@link #tokenRequestExecTimeoutInMs(int)}: Sets the token request execution timeout in milliseconds.
*
- *
+ *
* Usage:
*
* {@code
@@ -58,7 +58,7 @@
* .build();
* }
*
- *
+ *
* Note:
*
* - Only one of ServicePrincipal, ManagedIdentity or customEntraIdAuthenticationSupplier can be configured.
@@ -67,10 +67,10 @@
* For more information and details on how to use, please see:
* https://github.com/redis/jedis/blob/master/docs/advanced-usage.md#token-based-authentication
*
https://github.com/redis/lettuce/blob/main/docs/user-guide/connecting-redis.md#microsoft-entra-id-authentication
- *
+ *
* @see TokenAuthConfig.Builder
* @see AutoCloseable
- *
+ *
*/
public class EntraIDTokenAuthConfigBuilder extends TokenAuthConfig.Builder
implements AutoCloseable {
@@ -187,7 +187,7 @@ public TokenAuthConfig build() {
}
@Override
- public void close() throws Exception {
+ public void close() {
clientId = null;
secret = null;
key = null;