public class ApiUser extends Object
Note that any method that returns user information will not contain any password information. The password property is only used when creating or updating users.
Constructor and Description |
---|
ApiUser() |
Modifier and Type | Method and Description |
---|---|
void |
addRole(String role) |
boolean |
equals(Object o) |
String |
getName()
The username, which is unique within a Cloudera Manager installation.
|
String |
getPassword()
Returns the user password.
|
String |
getPwHash()
NOTE: Only available in the "export" view
|
Boolean |
getPwLogin()
NOTE: Only available in the "export" view
|
Long |
getPwSalt()
NOTE: Only available in the "export" view
|
Set<String> |
getRoles()
A list of roles this user belongs to.
|
int |
hashCode() |
void |
setName(String name) |
void |
setPassword(String password)
Sets the user password.
|
void |
setPwHash(String pwHash) |
void |
setPwLogin(Boolean pwLogin) |
void |
setPwSalt(Long pwSalt) |
void |
setRoles(Set<String> roles) |
String |
toString() |
public String getName()
public void setName(String name)
public String getPassword()
Passwords are not returned when querying user information, so this property will always be empty when reading information from a server.
public void setPassword(String password)
When creating a user or updating an existing user, this property should contain the plain text user password to be set.
password
- Plain text user password.public Set<String> getRoles()
In Cloudera Express, possible values are:
Note that although this interface provides a list of roles, a user should only be assigned a single role at a time.
public void addRole(String role)
public String getPwHash()
public void setPwHash(String pwHash)
public Long getPwSalt()
public void setPwSalt(Long pwSalt)
public Boolean getPwLogin()
public void setPwLogin(Boolean pwLogin)
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.