Class Config

java.lang.Object
com.glideidentity.Config

public class Config extends Object
Configuration for the Glide SDK. OAuth2 credentials can be provided directly or loaded from environment variables: - GLIDE_CLIENT_ID - GLIDE_CLIENT_SECRET
  • Constructor Details

    • Config

      public Config(String clientId, String clientSecret, String baseUrl)
      Creates configuration with OAuth2 credentials and custom base URL.
      Parameters:
      clientId - OAuth2 Client ID
      clientSecret - OAuth2 Client Secret
      baseUrl - API base URL
    • Config

      public Config(String clientId, String clientSecret)
      Creates configuration with OAuth2 credentials. Base URL will be loaded from GLIDE_API_BASE_URL environment variable, or use the default if not set.
      Parameters:
      clientId - OAuth2 Client ID
      clientSecret - OAuth2 Client Secret
    • Config

      public Config()
      Creates configuration that loads settings from environment. Credentials from GLIDE_CLIENT_ID and GLIDE_CLIENT_SECRET, base URL from GLIDE_API_BASE_URL.
  • Method Details

    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
    • getClientSecret

      public String getClientSecret()
    • setClientSecret

      public void setClientSecret(String clientSecret)
    • getBaseUrl

      public String getBaseUrl()
    • setBaseUrl

      public void setBaseUrl(String baseUrl)
    • getTokenRefreshBuffer

      public int getTokenRefreshBuffer()
    • setTokenRefreshBuffer

      public void setTokenRefreshBuffer(int tokenRefreshBuffer)
      Sets the token refresh buffer in seconds. Token will be refreshed this many seconds before expiry.
      Parameters:
      tokenRefreshBuffer - Seconds before expiry to refresh (default: 60)
    • getLogLevel

      public String getLogLevel()
    • setLogLevel

      public void setLogLevel(String logLevel)
    • getLogFormat

      public String getLogFormat()
    • setLogFormat

      public void setLogFormat(String logFormat)
    • getLogger

      public Logger.LoggerInterface getLogger()
    • setLogger

      public void setLogger(Logger.LoggerInterface logger)