edu.vt.middleware.ldap.bean
Interface LdapAttribute

All Known Implementing Classes:
AbstractLdapAttribute, OrderedLdapBeanFactory.OrderedLdapAttribute, SortedLdapBeanFactory.SortedLdapAttribute, UnorderedLdapBeanFactory.UnorderedLdapAttribute

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.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Method Summary
 String getName()
          This returns the name of this LdapAttribute.
 Set<String> getStringValues()
          This returns the value(s) of this LdapAttribute Values are encoded in base64 format if the underlying value is of type byte[].
 Set<Object> getValues()
          This returns the value(s) of this LdapAttribute.
 void setAttribute(Attribute attribute)
          This sets this LdapAttribute using the supplied attribute.
 void setName(String name)
          This sets the name of this LdapAttribute.
 Attribute toAttribute()
          This returns an Attribute that represents the values in this LdapAttribute.
 

Method Detail

getName

String getName()
This returns the name of this LdapAttribute.

Returns:
String

getValues

Set<Object> getValues()
This returns the value(s) of this LdapAttribute.

Returns:
Set

getStringValues

Set<String> getStringValues()
This returns the value(s) of this LdapAttribute Values are encoded in base64 format if the underlying value is of type byte[]. The returned set is unmodifiable.

Returns:
unmodifiable Set

setAttribute

void setAttribute(Attribute attribute)
                  throws NamingException
This sets this LdapAttribute using the supplied attribute.

Parameters:
attribute - Attribute
Throws:
NamingException - if the attribute values cannot be read

setName

void setName(String name)
This sets the name of this LdapAttribute.

Parameters:
name - String

toAttribute

Attribute toAttribute()
This returns an Attribute that represents the values in this LdapAttribute.

Returns:
Attribute


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.