Class BinaryAttributeHandler

  • All Implemented Interfaces:
    AttributeHandler, ResultHandler<javax.naming.directory.Attribute,​javax.naming.directory.Attribute>

    public class BinaryAttributeHandler
    extends CopyAttributeHandler
    BinaryAttributeHandler ensures that any attribute that contains a value of type byte[] is base64 encoded.
    Version:
    $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
    Author:
    Middleware Services
    • Constructor Detail

      • BinaryAttributeHandler

        public BinaryAttributeHandler()
    • Method Detail

      • processValue

        protected java.lang.Object processValue​(SearchCriteria sc,
                                                java.lang.Object value)
        This base64 encodes the supplied value if it is of type byte[].
        Overrides:
        processValue in class CopyAttributeHandler
        Parameters:
        sc - SearchCriteria used to find enumeration
        value - Object to process
        Returns:
        Object