Class CompareResponseProtocolOp

    • Constructor Detail

      • CompareResponseProtocolOp

        public CompareResponseProtocolOp​(int resultCode,
                                         @Nullable
                                         java.lang.String matchedDN,
                                         @Nullable
                                         java.lang.String diagnosticMessage,
                                         @Nullable
                                         java.util.List<java.lang.String> referralURLs)
        Creates a new instance of this compare response protocol op with the provided information.
        Parameters:
        resultCode - The result code for this response.
        matchedDN - The matched DN for this response, if available.
        diagnosticMessage - The diagnostic message for this response, if any.
        referralURLs - The list of referral URLs for this response, if any.
      • CompareResponseProtocolOp

        public CompareResponseProtocolOp​(@NotNull
                                         LDAPResult result)
        Creates a new compare response protocol op from the provided LDAP result object.
        Parameters:
        result - The LDAP result object to use to create this protocol op.
    • Method Detail

      • encodeProtocolOp

        @NotNull
        public ASN1Element encodeProtocolOp()
        Encodes this protocol op to an ASN.1 element suitable for inclusion in an encoded LDAP message.
        Returns:
        The ASN.1 element containing the encoded protocol op.