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
Creates an instance of the UserData class.
Adds one attribute value to this object.
From the information stored in this object, obtains one attribute value associated with the specified attribute name.
Obtains a list of attribute names stored in this object.
From the information stored in this object, obtains all of the attribute values associated with the specified attribute name.
Removes an attribute from this object.
Stores a password into this object.
Obtains the total number of attributes stored in this object.