org.jclouds.openstack.keystone.v2_0.domain
Class User
java.lang.Object
org.jclouds.openstack.keystone.v2_0.domain.User
- All Implemented Interfaces:
- Comparable<User>
public class User
- extends Object
- implements Comparable<User>
A digital representation of a person, system, or service who uses OpenStack cloud services.
Keystone authentication services will validate that incoming request are being made by the user
who claims to be making the call. Users have a login and may be assigned tokens to access users.
Users may be directly assigned to a particular tenant and behave as if they are contained in that
tenant.
- Author:
- Adrian Cole
- See Also:
id
protected final String id
name
protected final String name
roles
protected final Set<Role> roles
User
public User(String id,
String name,
Set<Role> roles)
builder
public static User.Builder builder()
toBuilder
public User.Builder toBuilder()
getId
public String getId()
- When providing an ID, it is assumed that the user exists in the current OpenStack deployment
- Returns:
- the id of the user in the current OpenStack deployment
getName
public String getName()
- Returns:
- the name of the user
getRoles
public Set<Role> getRoles()
- Returns:
- the roles assigned to the user
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(User that)
- Specified by:
compareTo
in interface Comparable<User>
Copyright © 2009-2012 jclouds. All Rights Reserved.