org.ldaptive.ad
Class UnicodePwdAttribute

java.lang.Object
  extended by org.ldaptive.AbstractLdapBean
      extended by org.ldaptive.LdapAttribute
          extended by org.ldaptive.ad.UnicodePwdAttribute
All Implemented Interfaces:
Serializable

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. See UnicodePwdValueTranscoder.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services
See Also:
Serialized Form

Constructor Summary
UnicodePwdAttribute()
          Default constructor.
UnicodePwdAttribute(String... values)
          Creates a new unicode pwd attribute.
 
Method Summary
 void addStringValue(String... value)
          Adds the supplied string as a value for this attribute.
 Collection<String> getStringValues()
          Returns the values of this attribute as strings.
 void removeStringValue(String... value)
          Removes the supplied value from the attribute values if it exists.
 
Methods inherited from class org.ldaptive.LdapAttribute
addBinaryValue, addBinaryValues, addStringValues, addValue, addValues, clear, createLdapAttribute, createSortBehaviorCollection, escapeValue, getBinaryValue, getBinaryValues, getName, getName, getOptions, getStringValue, getValue, getValues, hashCode, isBinary, removeBinaryValue, removeBinaryValues, removeStringValues, setName, size, toString
 
Methods inherited from class org.ldaptive.AbstractLdapBean
equals, getSortBehavior
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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()
Returns the values of this attribute as strings. Binary data is base64 encoded. The return collection cannot be modified.

Overrides:
getStringValues in class LdapAttribute
Returns:
collection of string attribute values

addStringValue

public void addStringValue(String... value)
Adds the supplied string as a value for this attribute.

Overrides:
addStringValue in class LdapAttribute
Parameters:
value - to add

removeStringValue

public void removeStringValue(String... value)
Removes the supplied value from the attribute values if it exists.

Overrides:
removeStringValue in class LdapAttribute
Parameters:
value - to remove


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