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

      • getStringValue

        public String getStringValue()
        Description copied from class: LdapAttribute
        Returns a single string value of this attribute.
        Overrides:
        getStringValue in class LdapAttribute
        Returns:
        single string attribute value or null if this attribute is empty
      • 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 class LdapAttribute
        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 class LdapAttribute
        Parameters:
        value - to add, null values are discarded
      • addStringValues

        public void addStringValues​(Collection<String> values)
        Description copied from class: LdapAttribute
        Adds all the strings in the supplied collection as values for this attribute.
        Overrides:
        addStringValues in class LdapAttribute
        Parameters:
        values - to add, null values are discarded