Package org.ldaptive

Class CompareResponse

  • All Implemented Interfaces:
    Message, Result

    public class CompareResponse
    extends AbstractResult
    LDAP compare response defined as:
       CompareResponse ::= [APPLICATION 15] LDAPResult
     
    • Field Detail

      • HASH_CODE_SEED

        private static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
      • RESULT_CODE_PATH

        private static final DERPath RESULT_CODE_PATH
        DER path to result code.
      • MATCHED_DN_PATH

        private static final DERPath MATCHED_DN_PATH
        DER path to matched DN.
      • DIAGNOSTIC_MESSAGE_PATH

        private static final DERPath DIAGNOSTIC_MESSAGE_PATH
        DER path to diagnostic message.
      • REFERRAL_PATH

        private static final DERPath REFERRAL_PATH
        DER path to referral.
    • Constructor Detail

      • CompareResponse

        private CompareResponse()
        Default constructor.
      • CompareResponse

        public CompareResponse​(DERBuffer buffer)
        Creates a new compare response.
        Parameters:
        buffer - to decode
    • Method Detail

      • isTrue

        public boolean isTrue()
        Returns whether the result code in this result is ResultCode.COMPARE_TRUE.
        Returns:
        whether this result is compare true
      • isFalse

        public boolean isFalse()
        Returns whether the result code in this result is ResultCode.COMPARE_FALSE.
        Returns:
        whether this result is compare false
      • hashCode

        public int hashCode()
        Description copied from class: AbstractMessage
        Returns the hash code for this object.
        Specified by:
        hashCode in class AbstractMessage
        Returns:
        hash code