Class LDAPGetProperty

java.lang.Object
netscape.ldap.beans.LDAPBasePropertySupport
netscape.ldap.beans.LDAPGetProperty
All Implemented Interfaces:
Serializable

public class LDAPGetProperty extends LDAPBasePropertySupport implements Serializable
Invisible Bean that just takes a name and password, host and port, and directory base and attribute name, and returns an attribute's values from a Directory Server. The values are assumed to be strings, and are returned as an array. The search has the scope "SUB", which means that it will find an entry anywhere at or below the directory base.

Optionally, a client can register as a PropertyChangeListener and will be notified when the values are available.

A null result means the property fetch failed. The reason is available through getErrorCode(), which returns one of the following:
     OK
     INVALID_PARAMETER
     CONNECT_ERROR
     AUTHENTICATION_ERROR
     PROPERTY_NOT_FOUND
     AMBIGUOUS_RESULTS
See Also: