Package org.ldaptive.ad
Class UnicodePwdAttribute
- java.lang.Object
-
- org.ldaptive.LdapAttribute
-
- org.ldaptive.ad.UnicodePwdAttribute
-
public class UnicodePwdAttribute extends LdapAttribute
Helper class for the active directory unicodePwd attribute. Configures a binary attribute of that name and allows setting of the attribute value using a string. SeeUnicodePwdValueTranscoder
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldaptive.LdapAttribute
LdapAttribute.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private static String
ATTR_NAME
name of this attribute.private static UnicodePwdValueTranscoder
TRANSCODER
transcoder used when adding string values.
-
Constructor Summary
Constructors Constructor Description UnicodePwdAttribute()
Default constructor.UnicodePwdAttribute(String... values)
Creates a new unicode pwd attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStringValues(String... value)
Adds the supplied string as a value for this attribute.Collection<String>
getStringValues()
Returns the values of this attribute as strings.-
Methods inherited from class org.ldaptive.LdapAttribute
addBinaryValues, addBinaryValues, addBufferValues, addBufferValues, addStringValues, addValues, addValues, builder, clear, configureBinary, equals, getBinaryValue, getBinaryValues, getName, getName, getOptions, getStringValue, getValue, getValues, hashCode, hasValue, hasValue, hasValue, isBinary, removeBinaryValues, removeBinaryValues, removeBufferValues, removeBufferValues, removeStringValues, removeStringValues, setBinary, setName, size, sort, toString
-
-
-
-
Field Detail
-
ATTR_NAME
private static final String ATTR_NAME
name of this attribute.- See Also:
- Constant Field Values
-
TRANSCODER
private static final UnicodePwdValueTranscoder TRANSCODER
transcoder used when adding string values.
-
-
Constructor Detail
-
UnicodePwdAttribute
public UnicodePwdAttribute()
Default constructor.
-
UnicodePwdAttribute
public UnicodePwdAttribute(String... values)
Creates a new unicode pwd attribute.- Parameters:
values
- of this attribute
-
-
Method Detail
-
getStringValues
public Collection<String> getStringValues()
Description copied from class:LdapAttribute
Returns the values of this attribute as strings. Binary data is base64 encoded. The return collection cannot be modified.- Overrides:
getStringValues
in classLdapAttribute
- Returns:
- collection of string attribute values
-
addStringValues
public void addStringValues(String... value)
Description copied from class:LdapAttribute
Adds the supplied string as a value for this attribute.- Overrides:
addStringValues
in classLdapAttribute
- Parameters:
value
- to add, null values are discarded
-
-