Class EventingFunctionUrlAuth

java.lang.Object
com.couchbase.client.java.manager.eventing.EventingFunctionUrlAuth
Direct Known Subclasses:
EventingFunctionUrlAuthBasic, EventingFunctionUrlAuthBearer, EventingFunctionUrlAuthDigest, EventingFunctionUrlNoAuth

public abstract class EventingFunctionUrlAuth extends Object
Abstract interface for all possible URL Binding authentication mechanisms.

Supported are:

  • Constructor Details

    • EventingFunctionUrlAuth

      public EventingFunctionUrlAuth()
  • Method Details

    • noAuth

      public static EventingFunctionUrlNoAuth noAuth()
      No authentication will be used.
      Returns:
      the no auth instance indicating no auth.
    • basicAuth

      public static EventingFunctionUrlAuthBasic basicAuth(String username, String password)
      HTTP Basic Authentication will be used.
      Parameters:
      username - the username for authentication.
      password - the password for authentication.
      Returns:
      the basic instance indicating http basic auth.
    • digestAuth

      public static EventingFunctionUrlAuthDigest digestAuth(String username, String password)
      HTTP Digest Authentication will be used.
      Parameters:
      username - the username for authentication.
      password - the password for authentication.
      Returns:
      the digest instance indicating http digest auth.
    • bearerAuth

      public static EventingFunctionUrlAuthBearer bearerAuth(String key)
      HTTP Bearer / Token Authentication will be used.
      Parameters:
      key - the bearer key/token for authentication.
      Returns:
      the bearer instance indicating http bearer auth.