public interface LDAPEntry
Modifier and Type | Method and Description |
---|---|
Iterator<LDAPAttribute> |
attributesIterator()
Returns an iterator over the set of attributes in the entry.
|
Iterator<LDAPAttribute> |
attributesIterator(String baseName,
Set<String> options)
Returns an iterator over the set of attributes with the given base name and all of the
specified options.
|
LDAPAttribute |
getAttribute(String attrName)
In an entry, returns the single attribute that exactly matches the specified attribute name.
|
String |
getDN()
Returns the distinguished name of the current entry.
|
boolean |
hasAttribute(String attrName)
Reports whether this entry contains the specified attribute.
|
boolean |
hasAttributeValue(String attrName,
byte[] value)
Reports whether this entry contains an attribute with the given name and value.
|
boolean |
hasAttributeValue(String attrName,
String value)
Reports whether this entry contains an attribute with the given name and value.
|
String |
toString()
Retrieves the string representation of the entry's distinguished name (DN) and its attributes.
|
boolean hasAttribute(String attrName)
attrName
- the name of the attribute for which to make the check. It must not be null.boolean hasAttributeValue(String attrName, byte[] value)
attrName
- the name of the attribute for which to make the check. It must not be null.value
- the value for which to make the check. It must not be null.boolean hasAttributeValue(String attrName, String value)
attrName
- the name of the attribute for which to make the check. It must not be null.value
- the value for which to make the check. It must not be null.LDAPAttribute getAttribute(String attrName)
attrName
- the name of attribute to return. It must not be null.LDAPAttribute
Iterator<LDAPAttribute> attributesIterator()
LDAPAttribute
Iterator<LDAPAttribute> attributesIterator(String baseName, Set<String> options)
baseName
- the base name (without any options) for the attribute to return.
It must not be null.options
- the set of options that should be included in the attributes that are returned.LDAPAttribute
String getDN()