Package edu.vt.middleware.ldap.bean
Interface LdapAttribute
-
- All Known Implementing Classes:
AbstractLdapAttribute,OrderedLdapBeanFactory.OrderedLdapAttribute,SortedLdapBeanFactory.SortedLdapAttribute,UnorderedLdapBeanFactory.UnorderedLdapAttribute
public interface LdapAttributeLdapAttributerepresents 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.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()This returns the name of thisLdapAttribute.java.util.Set<java.lang.String>getStringValues()This returns the value(s) of thisLdapAttributeValues 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 thisLdapAttribute.voidsetAttribute(javax.naming.directory.Attribute attribute)This sets thisLdapAttributeusing the supplied attribute.voidsetName(java.lang.String name)This sets the name of thisLdapAttribute.javax.naming.directory.AttributetoAttribute()This returns anAttributethat represents the values in thisLdapAttribute.
-
-
-
Method Detail
-
getName
java.lang.String getName()
This returns the name of thisLdapAttribute.- Returns:
String
-
getValues
java.util.Set<java.lang.Object> getValues()
This returns the value(s) of thisLdapAttribute.- Returns:
Set
-
getStringValues
java.util.Set<java.lang.String> getStringValues()
This returns the value(s) of thisLdapAttributeValues are encoded in base64 format if the underlying value is of type byte[]. The returned set is unmodifiable.- Returns:
- unmodifiable
Set
-
setAttribute
void setAttribute(javax.naming.directory.Attribute attribute) throws javax.naming.NamingExceptionThis sets thisLdapAttributeusing the supplied attribute.- Parameters:
attribute-Attribute- Throws:
javax.naming.NamingException- if the attribute values cannot be read
-
setName
void setName(java.lang.String name)
This sets the name of thisLdapAttribute.- Parameters:
name-String
-
toAttribute
javax.naming.directory.Attribute toAttribute()
This returns anAttributethat represents the values in thisLdapAttribute.- Returns:
Attribute
-
-