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[]assertionValueAttribute value.private StringattributeDescAttribute description.private booleandnAttributesDN attributes.private static intHASH_CODE_SEEDhash code seed.private StringmatchingRuleIDMatching 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 booleanequals(Object o)byte[]getAssertionValue()Returns the assertion value.StringgetAttributeDesc()Returns the attribute description.booleangetDnAttributes()Returns whether matching should occur against attributes of the DN.DEREncodergetEncoder()Returns the encoder for this filter.StringgetMatchingRuleID()Returns the matching rule id.inthashCode()StringtoString()
-
-
-
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:FilterReturns the encoder for this filter.- Specified by:
getEncoderin interfaceFilter- Returns:
- DER encoder
-
-