Package org.ldaptive.ad
Class UnicodePwdAttribute
- java.lang.Object
- 
- org.ldaptive.AbstractFreezable
- 
- org.ldaptive.LdapAttribute
- 
- org.ldaptive.ad.UnicodePwdAttribute
 
 
 
- 
- All Implemented Interfaces:
- Freezable
 
 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.LdapAttributeLdapAttribute.Builder
 
- 
 - 
Field SummaryFields Modifier and Type Field Description private static StringATTR_NAMEname of this attribute.private static UnicodePwdValueTranscoderTRANSCODERtranscoder used when adding string values.
 - 
Constructor SummaryConstructors Constructor Description UnicodePwdAttribute()Default constructor.UnicodePwdAttribute(String... values)Creates a new unicode pwd attribute.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStringValues(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.StringgetStringValue()Returns a single string value of this attribute.Collection<String>getStringValues()Returns the values of this attribute as strings.- 
Methods inherited from class org.ldaptive.LdapAttributeaddBinaryValues, 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, toString
 - 
Methods inherited from class org.ldaptive.AbstractFreezableassertMutable, freeze, freeze, freeze, isFrozen
 
- 
 
- 
- 
- 
Field Detail- 
ATTR_NAMEprivate static final String ATTR_NAME name of this attribute.- See Also:
- Constant Field Values
 
 - 
TRANSCODERprivate static final UnicodePwdValueTranscoder TRANSCODER transcoder used when adding string values.
 
- 
 - 
Constructor Detail- 
UnicodePwdAttributepublic UnicodePwdAttribute() Default constructor.
 - 
UnicodePwdAttributepublic UnicodePwdAttribute(String... values) Creates a new unicode pwd attribute.- Parameters:
- values- of this attribute
 
 
- 
 - 
Method Detail- 
getStringValuepublic String getStringValue() Description copied from class:LdapAttributeReturns a single string value of this attribute.- Overrides:
- getStringValuein class- LdapAttribute
- Returns:
- single string attribute value or null if this attribute is empty
 
 - 
getStringValuespublic Collection<String> 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 class- LdapAttribute
- Returns:
- collection of string attribute values
 
 - 
addStringValuespublic void addStringValues(String... value) Description copied from class:LdapAttributeAdds the supplied string as a value for this attribute.- Overrides:
- addStringValuesin class- LdapAttribute
- Parameters:
- value- to add, null values are discarded
 
 - 
addStringValuespublic void addStringValues(Collection<String> values) Description copied from class:LdapAttributeAdds all the strings in the supplied collection as values for this attribute.- Overrides:
- addStringValuesin class- LdapAttribute
- Parameters:
- values- to add, null values are discarded
 
 
- 
 
-