Connect to jira from java app

Hi Guys!

I want to write connector between Java sping app and Jira Cloud (next step is to write connector to server). At start it’s just integration to fetch issues by JQL using REST Api to my Java app.
Additionaly it would be perfect, to authenticate using Oauth, not basic Authentication.

My main question is how to implement this. Is there any lib/framework whioch chelps to done it?

I started with Jira Rest Java Client. At first implemented working connector, which actualy fetch data from my cloud jira using basic auth/token. Then readed doc more carefuly, and realised it’s only for jira SERVER. So i have working code, but according to documentation it work’s accidentaly becouse Cloud is not supported…

So now i’m trying to search beter way to implement connection with OAuth authentication.

Cheers!
Jacek