Package org.opends.server.protocols.ldap
Class LDAPReader
- java.lang.Object
-
- org.opends.server.protocols.ldap.LDAPReader
-
public class LDAPReader extends Object
Utility class used to decode LDAP messages from an ASN1Reader.
-
-
Constructor Summary
Constructors Constructor Description LDAPReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LDAPControlreadControl(ASN1Reader reader)Decodes the elements from the provided ASN.1 reader as an LDAP control.static LDAPMessagereadMessage(ASN1Reader reader)Decodes the elements from the provided ASN.1 reader as an LDAP message.static ProtocolOpreadProtocolOp(ASN1Reader reader)Decodes the elements from the provided ASN.1 reader as an LDAP protocol op.static SearchResultEntryProtocolOpreadSearchEntry(ASN1Reader reader)Decodes the elements from the provided ASN.1 reader as an LDAP search result entry protocol op.
-
-
-
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.
-
-