Class ExtensibleFilter

  • All Implemented Interfaces:
    Filter

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

      • HASH_CODE_SEED

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

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object