Package io.strimzi.kafka.oauth.common
Class DeprecationUtil
java.lang.Object
io.strimzi.kafka.oauth.common.DeprecationUtil
Helper class with methods to handle deprecated config options
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAccessTokenJwt(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'
-
Constructor Details
-
DeprecationUtil
public DeprecationUtil()
-
-
Method Details
-
isAccessTokenJwt
Get 'oauth.access.token.is.jwt' config option with fallback to the deprecated 'oauth.tokens.not.jwt'- Parameters:
config- a Config instancelog- Logger to use to log warningserrorPrefix- 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
-