You can use the following methods to secure a RESTful Web Services to support authentication, authorization, or encryption.
Attaching Oracle Web Services Manager (OWSM) policies.
Updating the web.xml deployment descriptor to access information about the authenticated users.
Using the javax.ws.rs.core.SecurityContext interface to access security-related information for a request.
Applying annotations to your JAX-RS classes.
Sample Application can be downloaded from the link below :
https://drive.google.com/open?id=1DMR...
On this page of the site you can watch the video online How To Secure RESTful application (with Basic Authentication) using Oracle JDeveloper 12c with a duration of hours minute second in good quality, which was uploaded by the user Sample Applications 04 December 2019, share the link with friends and acquaintances, this video has already been watched 2,002 times on youtube and it was liked by 19 viewers. Enjoy your viewing!