Class UserAndMetadata

java.lang.Object
com.couchbase.client.java.manager.user.UserAndMetadata

@Volatile public class UserAndMetadata extends Object
Information sent by the server in response to a "get user(s)" request. This includes the User record itself (which may be retrieved by calling user()) as well as metadata like which roles are inherited from which groups.
  • Constructor Details Link icon

  • Method Details Link icon

    • domain Link icon

      public AuthDomain domain()
    • user Link icon

      public User user()
      Returns a new mutable User with initial values matching the data in this UserAndMetadata.
    • innateRoles Link icon

      public Set<Role> innateRoles()
      Returns the roles assigned specifically to the user. Excludes roles that are only inherited from groups.
    • effectiveRoles Link icon

      public Set<Role> effectiveRoles()
      Returns all of the user's roles, including roles inherited from groups.
    • effectiveRolesAndOrigins Link icon

      public 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.
    • externalGroups Link icon

      public Set<String> externalGroups()
    • passwordChanged Link icon

      public Optional<Instant> passwordChanged()
      Returns the time the user's password was last set, if known.
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object