Making an authenticated REST call on the same Jira server

Hi,

I’ve written a Jira Plugin which expses a REST API.
From within that API, I need to make additional REST calls to REST APIs on that same Jira server.
I’ve used the org.apache.http package to make the REST calls but I am getting authorization errors (401).
I know I can make such calls to the linked Confluence server, with deligated authentication, using the ApplicationLink.createAuthenticatedRequestFactory().
How do I make such calls on the same Jira server?

Thank You,
Shay