Class LdapDecoder

    • Field Detail

      • MESSAGE_CONTAINER_ATTR

        public static final String MESSAGE_CONTAINER_ATTR
        The name of the LdapSession's attribute for the LDAP container used during the decoding
        See Also:
        Constant Field Values
      • MAX_PDU_SIZE_ATTR

        public static final String MAX_PDU_SIZE_ATTR
        The maximum PDU size, stored into the LDAPSession's attribute
        See Also:
        Constant Field Values
    • Constructor Detail

      • LdapDecoder

        public LdapDecoder()
        Creates an instance of a Ldap Decoder implementation.
    • Method Detail

      • decode

        public Message decode​(InputStream in,
                              LdapMessageContainer<? extends Message> container)
                       throws DecoderException
        Decodes a PDU from an input stream into a Ldap message container. We can only decode one complete message.
        Parameters:
        in - The input stream to read and decode PDU bytes from
        container - The LdapMessageContainer containing the message to decode
        Returns:
        return The decoded message
        Throws:
        DecoderException - If the decoding failed