Let's build a simple OAuth 2.0 client using Jersey APIs to understand the API usage pattern.
To use the Jersey OAuth 2.0 client APIs in your application, you need to add a dependency to the oauth2-client JAR file. If you use Maven, the dependency entry in pom.xml may look as shown in the following lines:
<dependency> <groupId>org.glassfish.jersey.security</groupId> <artifactId>oauth2-client</artifactId> ...