kirktrue commented on code in PR #16990:
URL: https://github.com/apache/kafka/pull/16990#discussion_r1731984190
##########
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/secured/ConfigurationUtils.java:
##########
@@ -209,6 +209,19 @@ public String validateString(String name, boolean
isRequired) throws ValidateExc
return value;
}
+ /**
+ * Validates that a value, if supplied, is a {@link Boolean}. If no value
is present in the configuration, a
+ * default value of {@link Boolean#FALSE} is returned.
+ */
+ public Boolean validateBoolean(String name) {
Review Comment:
I opted to add a separate method in `AccessTokenRetrieverFactory` since the
`ConfigurationUtils` class didn't have providing the default as a general
pattern.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]