Package com.okta.sdk.impl.config
Class ClientConfiguration
java.lang.Object
com.okta.commons.http.config.HttpClientConfiguration
com.okta.sdk.impl.config.ClientConfiguration
public class ClientConfiguration
extends com.okta.commons.http.config.HttpClientConfiguration
This class holds the default configuration properties.
 During application initialization all the properties found in the pre-defined locations that are
 defined by the user will be added here in the order defined in 
DefaultClientBuilder.
 Unset values will use default values from com/okta/sdk/config/okta.yaml.- Since:
 - 0.5.0
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncom.okta.commons.http.config.BaseUrlResolverlongTime to idle for cache manager in secondslongTime to live for cache manager in secondsgetKid()booleanvoidsetApiToken(String apiToken) voidsetAuthenticationScheme(AuthenticationScheme authenticationScheme) voidsetAuthorizationMode(AuthorizationMode authorizationMode) voidsetBaseUrlResolver(com.okta.commons.http.config.BaseUrlResolver baseUrlResolver) voidsetCacheManagerCaches(Map<String, CacheConfigurationBuilder> cacheManagerCaches) voidsetCacheManagerEnabled(boolean cacheManagerEnabled) voidsetCacheManagerTti(long cacheManagerTti) The cache manager's time to idle in secondsvoidsetCacheManagerTtl(long cacheManagerTtl) The cache manager's time to live in secondsvoidsetClientCredentialsResolver(ClientCredentialsResolver clientCredentialsResolver) voidsetClientId(String clientId) voidvoidsetOAuth2AccessToken(String oAuth2AccessToken) voidsetPrivateKey(String privateKey) voidtoString()Methods inherited from class com.okta.commons.http.config.HttpClientConfiguration
getConnectionTimeout, getProxy, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getRequestAuthenticator, getRequestExecutorParams, getRetryMaxAttempts, getRetryMaxElapsed, setBaseUrl, setConnectionTimeout, setProxy, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setRequestAuthenticator, setRequestExecutorParams, setRetryMaxAttempts, setRetryMaxElapsed 
- 
Constructor Details
- 
ClientConfiguration
public ClientConfiguration() 
 - 
 - 
Method Details
- 
getApiToken
 - 
setApiToken
 - 
getClientCredentialsResolver
 - 
setClientCredentialsResolver
 - 
getAuthenticationScheme
 - 
setAuthenticationScheme
 - 
getBaseUrlResolver
public com.okta.commons.http.config.BaseUrlResolver getBaseUrlResolver() - 
setBaseUrlResolver
public void setBaseUrlResolver(com.okta.commons.http.config.BaseUrlResolver baseUrlResolver)  - 
getAuthorizationMode
 - 
setAuthorizationMode
 - 
getClientId
 - 
setClientId
 - 
getScopes
 - 
setScopes
 - 
getPrivateKey
 - 
setPrivateKey
 - 
getOAuth2AccessToken
 - 
setOAuth2AccessToken
 - 
isCacheManagerEnabled
public boolean isCacheManagerEnabled() - 
setCacheManagerEnabled
public void setCacheManagerEnabled(boolean cacheManagerEnabled)  - 
getCacheManagerCaches
 - 
setCacheManagerCaches
 - 
getKid
 - 
setKid
 - 
getCacheManagerTti
public long getCacheManagerTti()Time to idle for cache manager in seconds- Returns:
 - seconds until time to idle expires
 
 - 
setCacheManagerTti
public void setCacheManagerTti(long cacheManagerTti) The cache manager's time to idle in seconds- Parameters:
 cacheManagerTti- the time to idle in seconds
 - 
getCacheManagerTtl
public long getCacheManagerTtl()Time to live for cache manager in seconds- Returns:
 - seconds until time to live expires
 
 - 
setCacheManagerTtl
public void setCacheManagerTtl(long cacheManagerTtl) The cache manager's time to live in seconds- Parameters:
 cacheManagerTtl- the time to live in seconds
 - 
getBaseUrl
- Overrides:
 getBaseUrlin classcom.okta.commons.http.config.HttpClientConfiguration
 - 
toString
- Overrides:
 toStringin classcom.okta.commons.http.config.HttpClientConfiguration
 
 -