Given the merge of prometheus/client_java#682, authentication to endpoints in jmx_exporter can now be implemented.
Ideally, I think we should make the authentication pluggable, with a default BasicAuthentication implementation built-in.
Thoughts on pluggability/configuration parameters?