Class AuthHandler


public class AuthHandler extends BodyHandler
Adds servers-side support for OAuth 2 authorization flows for obtaining limited access to API functionality. The resource server is assumed to be the same server as the authentication server.

Currently only one flow is supported:

Resource Owner Password Credentials
User credentials are directly exchanged for access tokens.