Class EventingFunctionUrlAuth
java.lang.Object
com.couchbase.client.java.manager.eventing.EventingFunctionUrlAuth
- Direct Known Subclasses:
EventingFunctionUrlAuthBasic
,EventingFunctionUrlAuthBearer
,EventingFunctionUrlAuthDigest
,EventingFunctionUrlNoAuth
Abstract interface for all possible URL Binding authentication mechanisms.
Supported are:
- No Authentication:
noAuth()
- Basic:
basicAuth(String, String)
- Digest:
digestAuth(String, String)
- Bearer:
bearerAuth(String)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventingFunctionUrlAuthBasic
HTTP Basic Authentication will be used.bearerAuth
(String key) HTTP Bearer / Token Authentication will be used.digestAuth
(String username, String password) HTTP Digest Authentication will be used.static EventingFunctionUrlNoAuth
noAuth()
No authentication will be used.
-
Constructor Details
-
EventingFunctionUrlAuth
public EventingFunctionUrlAuth()
-
-
Method Details
-
noAuth
No authentication will be used.- Returns:
- the no auth instance indicating no auth.
-
basicAuth
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
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
HTTP Bearer / Token Authentication will be used.- Parameters:
key
- the bearer key/token for authentication.- Returns:
- the bearer instance indicating http bearer auth.
-