public void authenticated(boolean authenticated) {
        this.authenticated = authenticated;
    }
Sets the authenticated state. This is set by the server-side callback handler
by matching the client provided password with the expected password.

@param authenticated true indicates successful authentication
clients/src/main/java/org/apache/kafka/common/security/plain/PlainAuthenticateCallback.java