Class AbstractAttributeValueAssertionFilter

java.lang.Object
org.ldaptive.filter.AbstractAttributeValueAssertionFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
ApproximateFilter, EqualityFilter, GreaterOrEqualFilter, LessOrEqualFilter

public abstract class AbstractAttributeValueAssertionFilter extends Object implements Filter
Base class for attribute value assertion filters.
  • Field Details

    • filterType

      protected final Filter.Type filterType
      Type of filter.
    • attributeDesc

      protected final String attributeDesc
      Attribute description.
    • assertionValue

      protected final byte[] assertionValue
      Attribute value.
  • Constructor Details

    • AbstractAttributeValueAssertionFilter

      public AbstractAttributeValueAssertionFilter(Filter.Type type, String name, byte[] value)
      Creates a new abstract attribute value assertion filter.
      Parameters:
      type - of filter
      name - attribute description
      value - attribute value
  • Method Details

    • getAttributeDesc

      public String getAttributeDesc()
      Returns the attribute description.
      Returns:
      attribute description
    • getAssertionValue

      public byte[] getAssertionValue()
      Returns the assertion value.
      Returns:
      assertion value
    • getEncoder

      public DEREncoder getEncoder()
      Description copied from interface: Filter
      Returns the encoder for this filter.
      Specified by:
      getEncoder in interface Filter
      Returns:
      DER encoder
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object