Class User
- java.lang.Object
-
- com.couchbase.client.java.cluster.User
-
@Uncommitted @Public public class User extends Object
Rbac user in couchbase- Since:
- 2.4.4
- Author:
- Subhashni Balakrishnan
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
User(String name, String userId, AuthDomain domain, UserRole[] roles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthDomain
domain()
Get user domain local or ldapString
name()
Get name of the userUserRole[]
roles()
Get user rolesString
userId()
Get user id
-
-
-
Constructor Detail
-
User
protected User(String name, String userId, AuthDomain domain, UserRole[] roles)
-
-
Method Detail
-
name
public String name()
Get name of the user- Returns:
- username
-
userId
public String userId()
Get user id- Returns:
- id
-
domain
public AuthDomain domain()
Get user domain local or ldap- Returns:
- domain
-
roles
public UserRole[] roles()
Get user roles- Returns:
- roles array of user roles
-
-