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 |
---|---|
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 . |
String getName()
LdapAttribute
.String
Set<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(Attribute attribute) throws NamingException
LdapAttribute
using the supplied attribute.attribute
- Attribute
NamingException
- if the attribute values cannot be readvoid setName(String name)
LdapAttribute
.name
- String
Attribute toAttribute()
Attribute
that represents the values in this
LdapAttribute
.Attribute
Copyright © 2018. All rights reserved.