Class LDAPReader


  • public class LDAPReader
    extends Object
    Utility class used to decode LDAP messages from an ASN1Reader.
    • Constructor Detail

      • LDAPReader

        public LDAPReader()
    • Method Detail

      • readMessage

        public static LDAPMessage readMessage​(ASN1Reader reader)
                                       throws LDAPException
        Decodes the elements from the provided ASN.1 reader as an LDAP message.
        Parameters:
        reader - The ASN.1 reader.
        Returns:
        The decoded LDAP message.
        Throws:
        LDAPException - If a problem occurs while attempting to decode the LDAP message.
      • readProtocolOp

        public static ProtocolOp readProtocolOp​(ASN1Reader reader)
                                         throws LDAPException
        Decodes the elements from the provided ASN.1 reader as an LDAP protocol op.
        Parameters:
        reader - The ASN.1 reader.
        Returns:
        The LDAP protocol op decoded from the provided ASN.1 element.
        Throws:
        LDAPException - If a problem occurs while trying to decode the provided ASN.1 elements as an LDAP protocol op.
      • readSearchEntry

        public static SearchResultEntryProtocolOp readSearchEntry​(ASN1Reader reader)
                                                           throws LDAPException
        Decodes the elements from the provided ASN.1 reader as an LDAP search result entry protocol op.
        Parameters:
        reader - The ASN.1 reader.
        Returns:
        The decoded search result entry protocol op.
        Throws:
        LDAPException - If a problem occurs while decoding the provided ASN.1 element as an LDAP search result entry protocol op.
      • readControl

        public static LDAPControl readControl​(ASN1Reader reader)
                                       throws LDAPException
        Decodes the elements from the provided ASN.1 reader as an LDAP control.
        Parameters:
        reader - The ASN.1 reader.
        Returns:
        The decoded LDAP control.
        Throws:
        LDAPException - If a problem occurs while attempting to decode the provided ASN.1 element as an LDAP control.