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 Details

    • PROTOCOL_OP

      public static final int PROTOCOL_OP
      BER protocol number.
      See Also:
    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • 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 Details

    • CompareResponse

      private CompareResponse()
      Default constructor.
    • CompareResponse

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

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractResult
    • 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
    • builder

      public static CompareResponse.Builder builder()
      Creates a builder for this class.
      Returns:
      new builder