@Stability.Volatile public class UserAndMetadata extends Object
Constructor and Description |
---|
UserAndMetadata(AuthDomain domain,
String username,
String displayName,
Collection<RoleAndOrigins> effectiveRoles,
Collection<String> groups,
Collection<String> externalGroups,
String passwordChanged) |
Modifier and Type | Method and Description |
---|---|
AuthDomain |
domain() |
Set<Role> |
effectiveRoles()
Returns all of the user's roles, including roles inherited from groups.
|
List<RoleAndOrigins> |
effectiveRolesAndOrigins()
Returns all of the user's roles plus information about whether each role
is assigned specifically to the user or inherited from a group, and if so which group.
|
Set<String> |
externalGroups() |
Set<Role> |
innateRoles()
Returns the roles assigned specifically to the user.
|
Optional<Instant> |
passwordChanged()
Returns the time the user's password was last set, if known.
|
String |
toString() |
User |
user()
Returns a new mutable
User with initial values matching the data in this UserAndMetadata . |
public UserAndMetadata(AuthDomain domain, String username, String displayName, Collection<RoleAndOrigins> effectiveRoles, Collection<String> groups, Collection<String> externalGroups, String passwordChanged)
public AuthDomain domain()
public User user()
User
with initial values matching the data in this UserAndMetadata
.public Set<Role> innateRoles()
public Set<Role> effectiveRoles()
public List<RoleAndOrigins> effectiveRolesAndOrigins()
public Optional<Instant> passwordChanged()
Copyright © 2020 Couchbase, Inc.. All rights reserved.