org.jclouds.openstack.keystone.v2_0.domain
Class User

java.lang.Object
  extended by org.jclouds.openstack.keystone.v2_0.domain.User

public class User
extends Object

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:

Nested Class Summary
static class User.Builder<T extends User.Builder<T>>
           
 
Constructor Summary
protected User(String id, String name, Set<Role> roles)
           
 
Method Summary
static User.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getId()
          When providing an ID, it is assumed that the user exists in the current OpenStack deployment
 String getName()
           
 Set<Role> getRoles()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 User.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

@ConstructorProperties(value={"id","name","roles"})
protected User(String id,
                                          String name,
                                          @Nullable
                                          Set<Role> roles)
Method Detail

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.