Package com.couchbase.client.core.env
Interface Credentials
-
- All Known Implementing Classes:
RoleBasedCredentials
public interface Credentials
TheCredentials
encapsulate different ways of carrying credentials throughout the client.Usually this will be username and password for RBAC, but other means are possible (like X.509 client certificate authentication or legacy per-bucket credentials).
- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
passwordForBucket(String bucket)
Returns the corresponding password for a given bucket.String
usernameForBucket(String bucket)
Returns the corresponding username for a given bucket.
-