Class BitwiseFilter

java.lang.Object
org.springframework.ldap.filter.AbstractFilter
com.atlassian.crowd.search.ldap.BitwiseFilter
All Implemented Interfaces:
org.springframework.ldap.filter.Filter

public class BitwiseFilter extends org.springframework.ldap.filter.AbstractFilter
Implements a bitwise filter for Active Directory attributes. See http://support.microsoft.com/kb/269181
Since:
v2.7
  • Method Details

    • encode

      public StringBuffer encode(StringBuffer buff)
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface org.springframework.ldap.filter.Filter
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.springframework.ldap.filter.Filter
      Overrides:
      hashCode in class Object
    • and

      public static BitwiseFilter and(String attribute, int mask)
      Factory method
      Parameters:
      attribute - attribute name to query
      mask - bit mask
      Returns:
      a bitwise filter that will match attribute values that contain all the bits in the mask.
    • or

      public static BitwiseFilter or(String attribute, int mask)
      Factory method
      Parameters:
      attribute - attribute name to query
      mask - bit mask
      Returns:
      a bitwise filter that will match attribute values that contain any of the bits in the mask.