org.ldaptive.ad.io
Class UnicodePwdValueTranscoder

java.lang.Object
  extended by org.ldaptive.io.AbstractBinaryValueTranscoder<String>
      extended by org.ldaptive.ad.io.UnicodePwdValueTranscoder
All Implemented Interfaces:
ValueTranscoder<String>

public class UnicodePwdValueTranscoder
extends AbstractBinaryValueTranscoder<String>

Decodes and encodes an active directory unicodePwd value for use in an ldap attribute value.

Version:
$Revision: 2998 $ $Date: 2014-06-11 13:28:09 -0400 (Wed, 11 Jun 2014) $
Author:
Middleware Services

Constructor Summary
UnicodePwdValueTranscoder()
           
 
Method Summary
 String decodeBinaryValue(byte[] value)
          Decodes the supplied ldap attribute value into a custom type.
 byte[] encodeBinaryValue(String value)
          Encodes the supplied value into an ldap attribute value.
 Class<String> getType()
          Returns the type produced by this value transcoder.
 
Methods inherited from class org.ldaptive.io.AbstractBinaryValueTranscoder
decodeStringValue, encodeStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodePwdValueTranscoder

public UnicodePwdValueTranscoder()
Method Detail

decodeBinaryValue

public String decodeBinaryValue(byte[] value)
Decodes the supplied ldap attribute value into a custom type.

Parameters:
value - to decode
Returns:
decoded value

encodeBinaryValue

public byte[] encodeBinaryValue(String value)
Encodes the supplied value into an ldap attribute value.

Parameters:
value - to encode
Returns:
encoded value

getType

public Class<String> getType()
Returns the type produced by this value transcoder.

Returns:
type produced by this value transcoder


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