Package org.ldaptive

Class CompareRequest

  • All Implemented Interfaces:
    Request

    public class CompareRequest
    extends AbstractRequestMessage
    LDAP compare request defined as:
       CompareRequest ::= [APPLICATION 14] SEQUENCE {
         entry           LDAPDN,
         ava             AttributeValueAssertion }
     
    • Field Detail

      • ldapDn

        private String ldapDn
        LDAP DN to compare.
      • attributeDesc

        private String attributeDesc
        Attribute description
      • assertionValue

        private String assertionValue
        Assertion value.
    • Constructor Detail

      • CompareRequest

        public CompareRequest()
        Default constructor.
      • CompareRequest

        public CompareRequest​(String dn,
                              String name,
                              String value)
        Creates a new compare request.
        Parameters:
        dn - to compare
        name - attribute description
        value - assertion value
    • Method Detail

      • getDn

        public String getDn()
        Returns the DN.
        Returns:
        DN
      • setDn

        public void setDn​(String dn)
        Sets the DN.
        Parameters:
        dn - ldapDn to set
      • getName

        public String getName()
        Returns the name.
        Returns:
        name
      • setName

        public void setName​(String name)
        Sets the name.
        Parameters:
        name - attributeDesc to set
      • getValue

        public String getValue()
        Returns the value.
        Returns:
        value
      • setValue

        public void setValue​(String value)
        Sets the value.
        Parameters:
        value - assertionValue to set
      • builder

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