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 Details

    • ClientConfiguration

      public ClientConfiguration()
  • Method Details

    • getApiToken

      public String getApiToken()
    • setApiToken

      public void setApiToken(String apiToken)
    • getClientCredentialsResolver

      public ClientCredentialsResolver getClientCredentialsResolver()
    • setClientCredentialsResolver

      public void setClientCredentialsResolver(ClientCredentialsResolver clientCredentialsResolver)
    • getAuthenticationScheme

      public AuthenticationScheme getAuthenticationScheme()
    • setAuthenticationScheme

      public void setAuthenticationScheme(AuthenticationScheme authenticationScheme)
    • getBaseUrlResolver

      public com.okta.commons.http.config.BaseUrlResolver getBaseUrlResolver()
    • setBaseUrlResolver

      public void setBaseUrlResolver(com.okta.commons.http.config.BaseUrlResolver baseUrlResolver)
    • getAuthorizationMode

      public AuthorizationMode getAuthorizationMode()
    • setAuthorizationMode

      public void setAuthorizationMode(AuthorizationMode authorizationMode)
    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
    • getScopes

      public Set<String> getScopes()
    • setScopes

      public void setScopes(Set<String> scopes)
    • getPrivateKey

      public String getPrivateKey()
    • setPrivateKey

      public void setPrivateKey(String privateKey)
    • getOAuth2AccessToken

      public String getOAuth2AccessToken()
    • setOAuth2AccessToken

      public void setOAuth2AccessToken(String oAuth2AccessToken)
    • isCacheManagerEnabled

      public boolean isCacheManagerEnabled()
    • setCacheManagerEnabled

      public void setCacheManagerEnabled(boolean cacheManagerEnabled)
    • getCacheManagerCaches

      public Map<String,CacheConfigurationBuilder> getCacheManagerCaches()
    • setCacheManagerCaches

      public void setCacheManagerCaches(Map<String,CacheConfigurationBuilder> cacheManagerCaches)
    • getKid

      public String getKid()
    • setKid

      public void setKid(String kid)
    • 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

      public String getBaseUrl()
      Overrides:
      getBaseUrl in class com.okta.commons.http.config.HttpClientConfiguration
    • toString

      public String toString()
      Overrides:
      toString in class com.okta.commons.http.config.HttpClientConfiguration