@@ -73,8 +73,8 @@ protected StsCredentialsProvider(BaseBuilder<?, ?> builder, String asyncThreadNa
73
73
}
74
74
75
75
/**
76
- * Update the expiring session credentials by calling STS. Invoked by {@link CachedSupplier} when the credentials are close to
77
- * expiring.
76
+ * Update the expiring session credentials by calling STS. Invoked by {@link CachedSupplier} when the credentials
77
+ * are close to expiring.
78
78
*/
79
79
private RefreshResult <SessionCredentialsHolder > updateSessionCredentials () {
80
80
SessionCredentialsHolder credentials = new SessionCredentialsHolder (getUpdatedCredentials (stsClient ));
@@ -97,15 +97,16 @@ public void close() {
97
97
}
98
98
99
99
/**
100
- * The amount of time, relative to STS token expiration, that the cached credentials are considered stale and should no longer be used.
101
- * All threads will block until the value is updated.
100
+ * The amount of time, relative to STS token expiration, that the cached credentials are considered stale and
101
+ * should no longer be used. All threads will block until the value is updated.
102
102
*/
103
103
public Duration staleTime () {
104
104
return staleTime ;
105
105
}
106
106
107
107
/**
108
- * The amount of time, relative to STS token expiration, that the cached credentials are considered close to stale and should be updated.
108
+ * The amount of time, relative to STS token expiration, that the cached credentials are considered close to stale
109
+ * and should be updated.
109
110
*/
110
111
public Duration prefetchTime () {
111
112
return prefetchTime ;
@@ -133,8 +134,8 @@ protected BaseBuilder(Function<B, T> providerConstructor) {
133
134
}
134
135
135
136
/**
136
- * Configure the {@link StsClient} to use when calling STS to update the session. This client should not be shut down
137
- * as long as this credentials provider is in use.
137
+ * Configure the {@link StsClient} to use when calling STS to update the session. This client should not be shut
138
+ * down as long as this credentials provider is in use.
138
139
*
139
140
* @param stsClient The STS client to use for communication with STS.
140
141
* @return This object for chained calls.
@@ -146,8 +147,9 @@ public B stsClient(StsClient stsClient) {
146
147
}
147
148
148
149
/**
149
- * Configure whether the provider should fetch credentials asynchronously in the background. If this is true, threads are
150
- * less likely to block when credentials are loaded, but additional resources are used to maintain the provider.
150
+ * Configure whether the provider should fetch credentials asynchronously in the background. If this is true,
151
+ * threads are less likely to block when credentials are loaded, but additional resources are used to maintain
152
+ * the provider.
151
153
*
152
154
* <p>By default, this is disabled.</p>
153
155
*/
@@ -158,8 +160,8 @@ public B asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled) {
158
160
}
159
161
160
162
/**
161
- * Configure the amount of time, relative to STS token expiration, that the cached credentials are considered stale and should no longer be used.
162
- * All threads will block until the value is updated.
163
+ * Configure the amount of time, relative to STS token expiration, that the cached credentials are considered
164
+ * stale and should no longer be used. All threads will block until the value is updated.
163
165
*
164
166
* <p>By default, this is 1 minute.</p>
165
167
*/
@@ -170,8 +172,8 @@ public B staleTime(Duration staleTime) {
170
172
}
171
173
172
174
/**
173
- * Configure the amount of time, relative to STS token expiration, that the cached credentials are considered close to stale and should be updated.
174
- * See {@link #asyncCredentialUpdateEnabled}.
175
+ * Configure the amount of time, relative to STS token expiration, that the cached credentials are considered
176
+ * close to stale and should be updated. See {@link #asyncCredentialUpdateEnabled}.
175
177
*
176
178
* <p>By default, this is 5 minutes.</p>
177
179
*/
0 commit comments