org.ldaptive.ad.handler
Class ObjectSidHandler

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

public class ObjectSidHandler
extends AbstractBinaryAttributeHandler

Processes an objectSid attribute by converting it from binary to it's string form. See http://msdn.microsoft.com/en-us/library/windows/desktop/ ms679024(v=vs.85).aspx.

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
ObjectSidHandler()
          Creates a new object sid handler.
ObjectSidHandler(String attrName)
          Creates a new object sid 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
getAttributeName, handleAttributes, initializeRequest, setAttributeName
 
Methods inherited from class org.ldaptive.handler.AbstractSearchEntryHandler
equals, handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSidHandler

public ObjectSidHandler()
Creates a new object sid handler.


ObjectSidHandler

public ObjectSidHandler(String attrName)
Creates a new object sid handler.

Parameters:
attrName - name of the attribute which is encoded as an objectSid
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()

Specified by:
hashCode in class AbstractSearchEntryHandler


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