Java Backend app and Okta

I have a java backend application. wichi access a rest API. I would like to add okta authentication and authorization. What would be the recommended okta app and flow for this use case. For example:

OKTA
|
|
myApp <--------------------------------> restAPI

Have you seen the quickstart?

https://developer.okta.com/quickstart/#/widget/java/generic