Package org.springframework.ldap.core
Class LdapAttributes
java.lang.Object
javax.naming.directory.BasicAttributes
org.springframework.ldap.core.LdapAttributes
- All Implemented Interfaces:
Serializable
,Cloneable
,Attributes
Extends
BasicAttributes
to add specialized support for
DNs.
While DNs appear to be and can be treated as attributes, they have a special meaning in that they define the address to which the object is bound. DNs must conform to special formatting rules and are typically required to be handled separately from other attributes.
This class makes this distinction between the DN and other attributes prominent and apparent.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructor.LdapAttributes
(boolean ignoreCase) Constructor for specifying whether or not the object is case sensitive. -
Method Summary
-
Field Details
-
dn
Distinguished name to which the object is bound.
-
-
Constructor Details
-
LdapAttributes
public LdapAttributes()Default constructor. -
LdapAttributes
public LdapAttributes(boolean ignoreCase) Constructor for specifying whether or not the object is case sensitive.- Parameters:
ignoreCase
- boolean indicator.
-
-
Method Details
-
getDN
Deprecated.Returns the distinguished name to which the object is bound.- Returns:
DistinguishedName
specifying the name to which the object is bound.
-
getName
Returns the distinguished name to which the object is bound.- Returns:
LdapName
specifying the name to which the object is bound.
-
setDN
Deprecated.Sets the distinguished name of the object.- Parameters:
dn
-DistinguishedName
specifying the name to which the object is bound.
-
setName
-
toString
Returns a string representation of the object in LDIF format.- Overrides:
toString
in classBasicAttributes
- Returns:
String
formated to RFC2849 LDIF specifications.
-
and associated classes and methods are deprecated as of 2.0
.