Package org.ldaptive.filter
Class ExtensibleFilter
- java.lang.Object
-
- org.ldaptive.filter.ExtensibleFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ldaptive.filter.Filter
Filter.Type
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
assertionValue
Attribute value.private String
attributeDesc
Attribute description.private boolean
dnAttributes
DN attributes.private static int
HASH_CODE_SEED
hash code seed.private String
matchingRuleID
Matching rule id.
-
Constructor Summary
Constructors Constructor Description ExtensibleFilter(String matchingRule, String type, byte[] value)
Creates a new extensible filter.ExtensibleFilter(String matchingRule, String type, byte[] value, boolean dnAttrs)
Creates a new extensible filter.ExtensibleFilter(String matchingRule, String type, String value)
Creates a new extensible filter.ExtensibleFilter(String matchingRule, String type, String value, boolean dnAttrs)
Creates a new extensible filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
byte[]
getAssertionValue()
Returns the assertion value.String
getAttributeDesc()
Returns the attribute description.boolean
getDnAttributes()
Returns whether matching should occur against attributes of the DN.DEREncoder
getEncoder()
Returns the encoder for this filter.String
getMatchingRuleID()
Returns the matching rule id.int
hashCode()
String
toString()
-
-
-
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 ruletype
- attribute descriptionvalue
- attribute value
-
ExtensibleFilter
public ExtensibleFilter(String matchingRule, String type, String value, boolean dnAttrs)
Creates a new extensible filter.- Parameters:
matchingRule
- matching ruletype
- attribute descriptionvalue
- attribute valuednAttrs
- DN attributes
-
ExtensibleFilter
public ExtensibleFilter(String matchingRule, String type, byte[] value)
Creates a new extensible filter.- Parameters:
matchingRule
- matching ruletype
- attribute descriptionvalue
- attribute value
-
-
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 interfaceFilter
- Returns:
- DER encoder
-
-