Class ExtensibleFilter

java.lang.Object
org.ldaptive.filter.ExtensibleFilter
All Implemented Interfaces:
Filter

public class ExtensibleFilter extends Object implements Filter
Extensible search filter component.
  • Field Details

    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • matchingRuleID

      private final String matchingRuleID
      Matching rule id.
    • attributeDesc

      private final String attributeDesc
      Attribute description.
    • assertionValue

      private final byte[] assertionValue
      Attribute value.
    • dnAttributes

      private final boolean dnAttributes
      DN attributes.
  • Constructor Details

    • ExtensibleFilter

      public ExtensibleFilter(String matchingRule, String type, String value)
      Creates a new extensible filter.
      Parameters:
      matchingRule - matching rule
      type - attribute description
      value - attribute value
    • ExtensibleFilter

      public ExtensibleFilter(String matchingRule, String type, String value, boolean dnAttrs)
      Creates a new extensible filter.
      Parameters:
      matchingRule - matching rule
      type - attribute description
      value - attribute value
      dnAttrs - DN attributes
    • ExtensibleFilter

      public ExtensibleFilter(String matchingRule, String type, byte[] value)
      Creates a new extensible filter.
      Parameters:
      matchingRule - matching rule
      type - attribute description
      value - attribute value
    • ExtensibleFilter

      public ExtensibleFilter(String matchingRule, String type, byte[] value, boolean dnAttrs)
      Creates a new extensible filter.
      Parameters:
      matchingRule - matching rule
      type - attribute description
      value - attribute value
      dnAttrs - DN attributes
  • Method Details

    • getMatchingRuleID

      public String getMatchingRuleID()
      Returns the matching rule id.
      Returns:
      matching rule id
    • getAttributeDesc

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

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

      public boolean getDnAttributes()
      Returns whether matching should occur against attributes of the DN.
      Returns:
      whether to match against DN attributes
    • 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 int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object