edu.vt.middleware.ldap.bean
public interface LdapAttribute
LdapAttribute
represents a single ldap attribute. Ldap attribute
values must be unique per http://tools.ietf.org/html/rfc4512#section-2.3. For
any given attribute, the values must all be of the same type.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
This returns the name of this
LdapAttribute . |
java.util.Set<java.lang.String> |
getStringValues()
This returns the value(s) of this
LdapAttribute Values are
encoded in base64 format if the underlying value is of type byte[]. |
java.util.Set<java.lang.Object> |
getValues()
This returns the value(s) of this
LdapAttribute . |
void |
setAttribute(javax.naming.directory.Attribute attribute)
This sets this
LdapAttribute using the supplied attribute. |
void |
setName(java.lang.String name)
This sets the name of this
LdapAttribute . |
javax.naming.directory.Attribute |
toAttribute()
This returns an
Attribute that represents the values in this
LdapAttribute . |
java.lang.String getName()
LdapAttribute
.String
java.util.Set<java.lang.Object> getValues()
LdapAttribute
.Set
java.util.Set<java.lang.String> getStringValues()
LdapAttribute
Values are
encoded in base64 format if the underlying value is of type byte[]. The
returned set is unmodifiable.Set
void setAttribute(javax.naming.directory.Attribute attribute) throws javax.naming.NamingException
LdapAttribute
using the supplied attribute.attribute
- Attribute
javax.naming.NamingException
- if the attribute values cannot be readvoid setName(java.lang.String name)
LdapAttribute
.name
- String
javax.naming.directory.Attribute toAttribute()
Attribute
that represents the values in this
LdapAttribute
.Attribute
Copyright © 2014. All Rights Reserved.