Support for Multi tenancy & Sample Java/Spring Boot Applications

Hello,

Want to build a sample Java web application using Spring Boot that can work with at least couple of tenants - orgs in Okta for OIDC based authentication & OAuth 2.0 authorization.

What APIs/components are available in an Okta developer account for same? Can I get some reference on sample applications for such a functionality?

Thanks, Dhaval.