Package org.springframework.ldap.core
Class LdapAttributes
- java.lang.Object
-
- javax.naming.directory.BasicAttributes
-
- org.springframework.ldap.core.LdapAttributes
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.naming.directory.Attributes
public class LdapAttributes extends javax.naming.directory.BasicAttributesExtendsBasicAttributesto 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.naming.ldap.LdapNamednDistinguished name to which the object is bound.
-
Constructor Summary
Constructors Constructor Description LdapAttributes()Default constructor.LdapAttributes(boolean ignoreCase)Constructor for specifying whether or not the object is case sensitive.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DistinguishedNamegetDN()javax.naming.ldap.LdapNamegetName()Returns the distinguished name to which the object is bound.voidsetDN(DistinguishedName dn)voidsetName(javax.naming.Name name)java.lang.StringtoString()Returns a string representation of the object in LDIF format.
-
-
-
Method Detail
-
getDN
public DistinguishedName getDN()
Deprecated.Returns the distinguished name to which the object is bound.- Returns:
DistinguishedNamespecifying the name to which the object is bound.
-
getName
public javax.naming.ldap.LdapName getName()
Returns the distinguished name to which the object is bound.- Returns:
LdapNamespecifying the name to which the object is bound.
-
setDN
public void setDN(DistinguishedName dn)
Deprecated.Sets the distinguished name of the object.- Parameters:
dn-DistinguishedNamespecifying the name to which the object is bound.
-
setName
public void setName(javax.naming.Name name)
-
toString
public java.lang.String toString()
Returns a string representation of the object in LDIF format.- Overrides:
toStringin classjavax.naming.directory.BasicAttributes- Returns:
Stringformated to RFC2849 LDIF specifications.
-
-