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
-
Method Summary
Modifier and TypeMethodDescriptioncom.okta.commons.http.config.BaseUrlResolver
long
Time to idle for cache manager in secondslong
Time to live for cache manager in secondsgetKid()
boolean
void
setApiToken
(String apiToken) void
setAuthenticationScheme
(AuthenticationScheme authenticationScheme) void
setAuthorizationMode
(AuthorizationMode authorizationMode) void
setBaseUrlResolver
(com.okta.commons.http.config.BaseUrlResolver baseUrlResolver) void
setCacheManagerCaches
(Map<String, CacheConfigurationBuilder> cacheManagerCaches) void
setCacheManagerEnabled
(boolean cacheManagerEnabled) void
setCacheManagerTti
(long cacheManagerTti) The cache manager's time to idle in secondsvoid
setCacheManagerTtl
(long cacheManagerTtl) The cache manager's time to live in secondsvoid
setClientCredentialsResolver
(ClientCredentialsResolver clientCredentialsResolver) void
setClientId
(String clientId) void
void
setOAuth2AccessToken
(String oAuth2AccessToken) void
setPrivateKey
(String privateKey) void
toString()
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:
getBaseUrl
in classcom.okta.commons.http.config.HttpClientConfiguration
-
toString
- Overrides:
toString
in classcom.okta.commons.http.config.HttpClientConfiguration
-