Java call for OAuth2