public interface LDAPEntry
Represents an LDAP entry resulting from an LDAP search operation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the specified attribute.getAll()
Returns all the attributes defined in the entry.Returns all values defined for the specifies attribute.Returns all the attributes defined in the entry.getAllAttribute
(String name) Returns all attributes defined for the specifies name.getAttribute
(String name) Returns the specified attribute.getDN()
Returns the entry DN.
-
Method Details
-
getDN
String getDN()Returns the entry DN.
- Returns:
- a DN
-
get
Returns the value of the specified attribute.
If multiple values are defined for that attribute, this method returns one of them in an non-deterministic way.
- Parameters:
name
- the name of the attribute- Returns:
- an optional returning the attribute value or an empty optional if no attribute exists with that name
- Throws:
LDAPException
- if there was an error accessing the attribute
-
getAll
Returns all values defined for the specifies attribute.
- Parameters:
name
- the name of the attribute- Returns:
- a list of values or an empty list if no attribute exists with that name
- Throws:
LDAPException
- if there was an error accessing the attribute
-
getAll
Returns all the attributes defined in the entry.
- Returns:
- a list of entries with attribute name as key and attribute value as value
- Throws:
LDAPException
- if there was an error accessing the attributes
-
getAttribute
Returns the specified attribute.
If multiple values are defined for that attribute, this method returns one of them in an non-deterministic way.
- Parameters:
name
- the name of the attribute- Returns:
- an optional returning the attribute or an empty optional if no attribute exists with that name
- Throws:
LDAPException
- if there was an error accessing the attribute
-
getAllAttribute
Returns all attributes defined for the specifies name.
- Parameters:
name
- the name of the attribute- Returns:
- a list of attributes or an empty list if no attribute exists with that name
- Throws:
LDAPException
- if there was an error accessing the attribute
-
getAllAttribute
Returns all the attributes defined in the entry.
- Returns:
- a list attributes
- Throws:
LDAPException
- if there was an error accessing the attributes
-