Class OAuthClient


public class OAuthClient extends Object
OAuth 2.0 client implementing OpenID Connect, a.k.a. relying party.

This class represents a client. It is a value class that stores only the id and a reference to an AbstractUserDatabase to access its properties.

An object can point to a valid client, or be invalid. Invalid clients are typically used as return value for database queries which did not match with an existing client.

See Also:
  • Constructor Details

    • OAuthClient

      public OAuthClient()
      Default constructor that creates an invalid OAuthClient.

      See Also:
    • OAuthClient

      public OAuthClient(String id, AbstractUserDatabase db)

      Creates a client with id id, and whose information is stored in the database.

  • Method Details