Package org.ldaptive.ad.handler
Class ObjectSidHandler
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.transport.MessageFunctional<Q,S>
org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
org.ldaptive.transport.AbstractMessageFunctionalEntryHandler<T>
org.ldaptive.ad.handler.AbstractBinaryAttributeHandler<LdapEntry>
org.ldaptive.ad.handler.ObjectSidHandler
- All Implemented Interfaces:
Function<LdapEntry,,LdapEntry> Freezable,LdapEntryHandler
public class ObjectSidHandler
extends AbstractBinaryAttributeHandler<LdapEntry>
implements LdapEntryHandler
Processes an objectSid attribute by converting it from binary to its string form. See
http://msdn.microsoft.com/en-us/library/windows/desktop/ms679024(v=vs.85).aspx.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringobjectSid attribute name.private static final inthash code seed.Fields inherited from class org.ldaptive.transport.AbstractMessageFunctionalEntryHandler
logger -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object sid handler.ObjectSidHandler(String attrName) Creates a new object sid handler. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconvertValue(byte[] value) Converts the supplied binary value to its string form.booleaninthashCode()Create a new instance of this message functional.Methods inherited from class org.ldaptive.ad.handler.AbstractBinaryAttributeHandler
getAttributeName, handleAttributes, setAttributeName, setRequestMethods inherited from class org.ldaptive.transport.AbstractMessageFunctionalEntryHandler
handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, handleEntryMethods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandleMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozen
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
ATTRIBUTE_NAME
objectSid attribute name.- See Also:
-
-
Constructor Details
-
ObjectSidHandler
public ObjectSidHandler()Creates a new object sid handler. -
ObjectSidHandler
Creates a new object sid handler.- Parameters:
attrName- name of the attribute which is encoded as an objectSid
-
-
Method Details
-
apply
-
convertValue
Description copied from class:AbstractBinaryAttributeHandlerConverts the supplied binary value to its string form.- Specified by:
convertValuein classAbstractBinaryAttributeHandler<LdapEntry>- Parameters:
value- to convert- Returns:
- string form of the value
-
newInstance
Description copied from class:MessageFunctionalCreate a new instance of this message functional.- Specified by:
newInstancein classMessageFunctional<SearchRequest,SearchResponse> - Returns:
- new instance of this message functional
-
equals
- Overrides:
equalsin classAbstractBinaryAttributeHandler<LdapEntry>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBinaryAttributeHandler<LdapEntry>
-