@@ -11,8 +11,7 @@ public class TokenAuthConfig {
11
11
private TokenManagerConfig tokenManagerConfig ;
12
12
private IdentityProviderConfig identityProviderConfig ;
13
13
14
- public TokenAuthConfig (TokenManagerConfig tokenManagerConfig ,
15
- IdentityProviderConfig identityProviderConfig ) {
14
+ public TokenAuthConfig (TokenManagerConfig tokenManagerConfig , IdentityProviderConfig identityProviderConfig ) {
16
15
this .tokenManagerConfig = tokenManagerConfig ;
17
16
this .identityProviderConfig = identityProviderConfig ;
18
17
}
@@ -68,18 +67,17 @@ public T identityProviderConfig(IdentityProviderConfig identityProviderConfig) {
68
67
}
69
68
70
69
public TokenAuthConfig build () {
71
- return new TokenAuthConfig (new TokenManagerConfig ( expirationRefreshRatio ,
72
- lowerRefreshBoundMillis , tokenRequestExecTimeoutInMs ,
73
- new TokenManagerConfig .RetryPolicy (maxAttemptsToRetry , delayInMsToRetry )),
70
+ return new TokenAuthConfig (
71
+ new TokenManagerConfig ( expirationRefreshRatio , lowerRefreshBoundMillis , tokenRequestExecTimeoutInMs ,
72
+ new TokenManagerConfig .RetryPolicy (maxAttemptsToRetry , delayInMsToRetry )),
74
73
identityProviderConfig );
75
74
}
76
75
77
76
public static Builder from (Builder sample ) {
78
77
return new Builder ().expirationRefreshRatio (sample .expirationRefreshRatio )
79
78
.lowerRefreshBoundMillis (sample .lowerRefreshBoundMillis )
80
79
.tokenRequestExecTimeoutInMs (sample .tokenRequestExecTimeoutInMs )
81
- .maxAttemptsToRetry (sample .maxAttemptsToRetry )
82
- .delayInMsToRetry (sample .delayInMsToRetry )
80
+ .maxAttemptsToRetry (sample .maxAttemptsToRetry ).delayInMsToRetry (sample .delayInMsToRetry )
83
81
.identityProviderConfig (sample .identityProviderConfig );
84
82
}
85
83
}
0 commit comments