|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.naming.directory.BasicAttributes
org.springframework.ldap.core.LdapAttributes
public class LdapAttributes
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 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.
Field Summary | |
---|---|
protected DistinguishedName |
dn
Distinguished name to which the object is bound. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class javax.naming.directory.BasicAttributes |
---|
clone, equals, get, getAll, getIDs, hashCode, isCaseIgnored, put, put, remove, size |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DistinguishedName dn
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |