org.ldaptive.ad.handler
Class ObjectGuidHandler

java.lang.Object
  extended by org.ldaptive.handler.AbstractSearchEntryHandler
      extended by org.ldaptive.ad.handler.AbstractBinaryAttributeHandler
          extended by org.ldaptive.ad.handler.ObjectGuidHandler
All Implemented Interfaces:
Handler<SearchRequest,SearchEntry>, SearchEntryHandler

public class ObjectGuidHandler
extends AbstractBinaryAttributeHandler

Processes an objectGuid attribute by converting it from binary to it's string form.

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

Field Summary
 
Fields inherited from class org.ldaptive.handler.AbstractSearchEntryHandler
logger
 
Constructor Summary
ObjectGuidHandler()
          Creates a new object guid handler.
ObjectGuidHandler(String attrName)
          Creates a new object guid handler.
 
Method Summary
protected  String convertValue(byte[] value)
          Converts the supplied binary value to it's string form.
 int hashCode()
          
 
Methods inherited from class org.ldaptive.ad.handler.AbstractBinaryAttributeHandler
equals, getAttributeName, handleAttributes, initializeRequest, setAttributeName
 
Methods inherited from class org.ldaptive.handler.AbstractSearchEntryHandler
handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectGuidHandler

public ObjectGuidHandler()
Creates a new object guid handler.


ObjectGuidHandler

public ObjectGuidHandler(String attrName)
Creates a new object guid handler.

Parameters:
attrName - name of the attribute which is encoded as an objectGUID
Method Detail

convertValue

protected String convertValue(byte[] value)
Converts the supplied binary value to it's string form.

Specified by:
convertValue in class AbstractBinaryAttributeHandler
Parameters:
value - to convert
Returns:
string form of the value

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractBinaryAttributeHandler


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