public interface Assertion
Modifier and Type | Field and Description |
---|---|
static Assertion |
UNDEFINED_ASSERTION
An assertion that always return UNDEFINED for matches and that creates a match all query.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
createIndexQuery(AttributeDescription attributeDescription,
IndexQueryFactory<T> factory)
Returns an index query appropriate for the provided attribute value assertion.
|
static Assertion |
greaterOrEqualAssertion(String indexId,
ByteSequence normalizedAssertionValue)
Returns an assertion for greater than or equal comparisons.
|
static Assertion |
greaterThanAssertion(String indexId,
ByteSequence normalizedAssertionValue)
Returns an assertion for greater than comparisons.
|
static Assertion |
lessOrEqualAssertion(String indexId,
ByteSequence normalizedAssertionValue)
Returns an assertion for less than or equal comparisons.
|
static Assertion |
lessThanAssertion(String indexId,
ByteSequence normalizedAssertionValue)
Returns an assertion for less than comparisons.
|
ConditionResult |
matches(ByteSequence normalizedAttributeValue)
Indicates whether the provided attribute value should be considered a
match for this assertion value according to the matching rule.
|
default ConditionResult |
matchesAny(Set<? extends ByteSequence> normalizedAttributeValues)
Indicates whether the provided attribute values should be considered a
match for this assertion value according to the matching rule.
|
static final Assertion UNDEFINED_ASSERTION
static Assertion lessThanAssertion(String indexId, ByteSequence normalizedAssertionValue)
indexId
- the index idnormalizedAssertionValue
- the normalized assertion valuestatic Assertion lessOrEqualAssertion(String indexId, ByteSequence normalizedAssertionValue)
indexId
- the index idnormalizedAssertionValue
- the normalized assertion valuestatic Assertion greaterOrEqualAssertion(String indexId, ByteSequence normalizedAssertionValue)
indexId
- the index idnormalizedAssertionValue
- the normalized assertion valuestatic Assertion greaterThanAssertion(String indexId, ByteSequence normalizedAssertionValue)
indexId
- the index idnormalizedAssertionValue
- the normalized assertion valueConditionResult matches(ByteSequence normalizedAttributeValue)
normalizedAttributeValue
- The normalized attribute value.TRUE
if the attribute value should be considered a match
for the provided assertion value, FALSE
if it does not
match, or UNDEFINED
if the result is undefined.default ConditionResult matchesAny(Set<? extends ByteSequence> normalizedAttributeValues)
normalizedAttributeValues
- The normalized attribute values.TRUE
if the attribute value should be considered a match
for the provided assertion value, FALSE
if it does not
match, or UNDEFINED
if the result is undefined.<T> T createIndexQuery(AttributeDescription attributeDescription, IndexQueryFactory<T> factory) throws DecodeException
T
- The type of index query created by the factory
.attributeDescription
- The attribute description whose index should be queried.factory
- The index query factory which should be used to construct the index query.DecodeException
- If an error occurs while generating the index query.Copyright 2010-2022 ForgeRock AS.