public class LdapAttributes extends BasicAttributes
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 formating 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.
Modifier and Type | Field and Description |
---|---|
protected DistinguishedName |
dn
Distinguished name to which the object is bound.
|
Constructor and Description |
---|
LdapAttributes()
Default constructor.
|
LdapAttributes(boolean ignoreCase)
Constructor for specifying whether or not the object is case sensitive.
|
LdapAttributes(DistinguishedName dn)
Creates an LdapAttributes object with the specified DN.
|
LdapAttributes(DistinguishedName dn,
boolean ignoreCase)
Creates an LdapAttributes object with the specified DN and case sensitivity setting.
|
LdapAttributes(DistinguishedName dn,
String attrID,
Object val)
Creates an LdapAttributes object with the specifying attribute and value and case sensitivity setting.
|
LdapAttributes(DistinguishedName dn,
String attrID,
Object val,
boolean ignoreCase)
Creates an LdapAttributes object for the supplied DN with the attribute specified.
|
LdapAttributes(String attrID,
Object val)
Creates an LdapAttributes object with the specified attribute.
|
LdapAttributes(String attrID,
Object val,
boolean ignoreCase)
Creates an LdapAttributes object with the specifying attribute and value and case sensitivity setting.
|
Modifier and Type | Method and Description |
---|---|
DistinguishedName |
getDN()
Returns the distinguished name to which the object is bound.
|
void |
setDN(DistinguishedName dn)
Sets the distinguished name of the object.
|
String |
toString()
Returns a string representation of the object in LDIF format.
|
protected DistinguishedName dn
public LdapAttributes()
public LdapAttributes(DistinguishedName dn)
dn
- The DistinguishedName
to which this object is bound.public LdapAttributes(boolean ignoreCase)
ignoreCase
- boolean indicator.public LdapAttributes(DistinguishedName dn, boolean ignoreCase)
dn
- The DistinguishedName
to which this object is bound.ignoreCase
- boolean indicator.public LdapAttributes(String attrID, Object val)
attrID
- String
ID of the attribute.val
- Value of the attribute.public LdapAttributes(DistinguishedName dn, String attrID, Object val)
dn
- The DistinguishedName
to which this object is bound.attrID
- String
ID of the attribute.val
- Value of the attribute.public LdapAttributes(String attrID, Object val, boolean ignoreCase)
attrID
- String
ID of the attribute.val
- Value of the attribute.ignoreCase
- boolean indicator.public LdapAttributes(DistinguishedName dn, String attrID, Object val, boolean ignoreCase)
dn
- The DistinguishedName
to which this object is bound.attrID
- String
ID of the attribute.val
- Value of the attribute.ignoreCase
- boolean indicator.public DistinguishedName getDN()
DistinguishedName
specifying the name to which the object is bound.public void setDN(DistinguishedName dn)
dn
- DistinguishedName
specifying the name to which the object is bound.public String toString()
toString
in class BasicAttributes
String
formated to RFC2849 LDIF specifications.Copyright © 2005–2016 The Spring LDAP Framework. All rights reserved.