Class DeprecationUtil

java.lang.Object
io.strimzi.kafka.oauth.common.DeprecationUtil

public class DeprecationUtil extends Object
Helper class with methods to handle deprecated config options
  • Constructor Details

    • DeprecationUtil

      public DeprecationUtil()
  • Method Details

    • isAccessTokenJwt

      public static boolean isAccessTokenJwt(Config config, org.slf4j.Logger log, String errorPrefix)
      Get 'oauth.access.token.is.jwt' config option with fallback to the deprecated 'oauth.tokens.not.jwt'
      Parameters:
      config - a Config instance
      log - Logger to use to log warnings
      errorPrefix - Error message prefix that becomes part of ConfigException#getMessage() if both current, and deprecated keys are configured
      Returns:
      The value of the config option as a boolean