Package org.ldaptive.ad
Class UnicodePwdAttribute
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.LdapAttribute
org.ldaptive.ad.UnicodePwdAttribute
- All Implemented Interfaces:
Freezable
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. See
UnicodePwdValueTranscoder.-
Nested Class Summary
Nested classes/interfaces inherited from class org.ldaptive.LdapAttribute
LdapAttribute.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringname of this attribute.private static final UnicodePwdValueTranscodertranscoder used when adding string values. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.UnicodePwdAttribute(String... values) Creates a new unicode pwd attribute. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStringValues(String... value) Adds the supplied string as a value for this attribute.voidaddStringValues(Collection<String> values) Adds all the strings in the supplied collection as values for this attribute.Returns a single string value of this attribute.Returns the values of this attribute as strings.Methods inherited from class org.ldaptive.LdapAttribute
addBinaryValues, addBinaryValues, addValues, addValues, builder, clear, configureBinary, copy, equals, getBinaryValue, getBinaryValues, getName, getName, getOptions, getValue, getValues, hashCode, hasValue, hasValue, hasValue, isBinary, merge, removeBinaryValues, removeBinaryValues, removeStringValues, removeStringValues, removeValues, removeValues, setBinary, setName, size, sort, toStringMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozen
-
Field Details
-
ATTR_NAME
name of this attribute.- See Also:
-
TRANSCODER
transcoder used when adding string values.
-
-
Constructor Details
-
UnicodePwdAttribute
public UnicodePwdAttribute()Default constructor. -
UnicodePwdAttribute
Creates a new unicode pwd attribute.- Parameters:
values- of this attribute
-
-
Method Details
-
getStringValue
Description copied from class:LdapAttributeReturns a single string value of this attribute.- Overrides:
getStringValuein classLdapAttribute- Returns:
- single string attribute value or null if this attribute is empty
-
getStringValues
Description copied from class:LdapAttributeReturns the values of this attribute as strings. Binary data is base64 encoded. The return collection cannot be modified.- Overrides:
getStringValuesin classLdapAttribute- Returns:
- collection of string attribute values
-
addStringValues
Description copied from class:LdapAttributeAdds the supplied string as a value for this attribute.- Overrides:
addStringValuesin classLdapAttribute- Parameters:
value- to add, null values are discarded
-
addStringValues
Description copied from class:LdapAttributeAdds all the strings in the supplied collection as values for this attribute.- Overrides:
addStringValuesin classLdapAttribute- Parameters:
values- to add, null values are discarded
-