jiazhai commented on a change in pull request #4097: Issue #3653: Kerberos
authentication for web resource support
URL: https://github.com/apache/pulsar/pull/4097#discussion_r277235118
##########
File path:
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authentication/AuthenticationState.java
##########
@@ -47,7 +49,14 @@
AuthenticationDataSource getAuthDataSource();
/**
- * Whether the authentication is completed or not
+ * Whether the authentication is completed or not.
*/
boolean isComplete();
+
+ /**
+ * Get AuthenticationState ID
+ */
+ default long getStateId() {
+ return 0;
Review comment:
It uses incAndGet, so 0 will not return.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services