public AuthenticationException authenticationException(String id) {
        NodeConnectionState state = nodeState.get(id);
        return state != null ? state.authenticationException : null;
    }
Return authentication exception if an authentication error occurred
@param id The id of the node to check
clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java