Okta integration for application which will serve as a rest service and also has an UI

we have to implement okta for an application in our oganization. we have 2 parts 1) UI 2) Rest Service that is consumed by other applications.

For Part 1, we are planning to use SAML authentication and part 2 we are planning to use OAUTH. Can you please provide example for both parts. Our application technologies are JSP+Spring Framework (3.X)+Oracle.

Email ID: dommetysateeshyash@gmail.com.