Hitachi

uCosminexus Application Server Security Management Guide


15.18 The UserData class

Description

Stores user information.

The package name of the UserData class is com.cosminexus.admin.auth.api.repository.ldap.

Syntax
class UserData
{
  public UserData();
 
  public void setPassword(String password);
  public Enumeration getAttributeNames();
  public Object getAttribute(String name);
  public Enumeration getAttributes(String name);
  public void addAttribute(String name,
                                Object attr);
  public void removeAttribute(String name);
  public int size();
}
Constructor and methods

Constructor/method name

Functionality

UserData constructor

Creates an instance of the UserData class.

addAttribute method

Adds one attribute value to this object.

getAttribute method

From the information stored in this object, obtains one attribute value associated with the specified attribute name.

getAttributeNames method

Obtains a list of attribute names stored in this object.

getAttributes method

From the information stored in this object, obtains all of the attribute values associated with the specified attribute name.

removeAttribute method

Removes an attribute from this object.

setPassword method

Stores a password into this object.

size method

Obtains the total number of attributes stored in this object.

Organization of this section