I am using the REST API to get a few things from my Zimbra server in a Java application.
Following the https://wiki.zimbra.com/wiki/Zimbra_REST_API_Reference documentation, I unfortunately don't understand how to pass on the credentials (username / password).
The REST API seems to work fine (in browser or with the "Advanced REST client" Chrome extension) as I get prompted for the credentials when using auth=ba or auth=sc.
But I don't understand how I am supposed to deal with credentials in Java code !
Thanks for helping, web searches have been unsuccessful so far.