Package org.ldaptive.ad.handler
Class ObjectGuidHandler
- java.lang.Object
-
- org.ldaptive.transport.MessageFunctional<Q,S>
-
- org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
-
- org.ldaptive.handler.AbstractEntryHandler<T>
-
- org.ldaptive.ad.handler.AbstractBinaryAttributeHandler<LdapEntry>
-
- org.ldaptive.ad.handler.ObjectGuidHandler
-
- All Implemented Interfaces:
java.util.function.Function<LdapEntry,LdapEntry>,LdapEntryHandler
public class ObjectGuidHandler extends AbstractBinaryAttributeHandler<LdapEntry> implements LdapEntryHandler
Processes an objectGuid attribute by converting it from binary to it's string form.- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class org.ldaptive.handler.AbstractEntryHandler
logger
-
-
Constructor Summary
Constructors Constructor Description ObjectGuidHandler()Creates a new object guid handler.ObjectGuidHandler(java.lang.String attrName)Creates a new object guid handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapEntryapply(LdapEntry entry)protected java.lang.StringconvertValue(byte[] value)Converts the supplied binary value to it's string form.booleanequals(java.lang.Object o)inthashCode()-
Methods inherited from class org.ldaptive.ad.handler.AbstractBinaryAttributeHandler
getAttributeName, handleAttributes, setAttributeName, setRequest
-
Methods inherited from class org.ldaptive.handler.AbstractEntryHandler
handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, handleEntry
-
Methods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandle
-
-
-
-
Method Detail
-
convertValue
protected java.lang.String convertValue(byte[] value)
Description copied from class:AbstractBinaryAttributeHandlerConverts the supplied binary value to it's string form.- Specified by:
convertValuein classAbstractBinaryAttributeHandler<LdapEntry>- Parameters:
value- to convert- Returns:
- string form of the value
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractBinaryAttributeHandler<LdapEntry>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractBinaryAttributeHandler<LdapEntry>
-
-