So I am using JAVA Authn SDK for authenticating my users and getting session token in the end. Now after getting authenticated, I want to use OKTA REST APIs for other activities let’s say List Users. For that, I need APIKEY. From my developer console, I can create token and use it for calling APIs. But how can I get this token through java sdk automatically to call other REST APIs.
Or If I am getting this wrong, simpler question is how to call REST APIs from java without going on console and generating token manually.