|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.api.MatchingRule<EqualityMatchingRuleCfg>
org.opends.server.api.EqualityMatchingRule
org.opends.server.schema.AuthPasswordEqualityMatchingRule
public class AuthPasswordEqualityMatchingRule
This class implements the authPasswordMatch matching rule defined in RFC 3112.
| Constructor Summary | |
|---|---|
AuthPasswordEqualityMatchingRule()
Creates a new instance of this authPasswordMatch matching rule. |
|
| Method Summary | |
|---|---|
boolean |
areEqual(ByteString value1,
ByteString value2)
Indicates whether the two provided normalized values are equal to each other. |
int |
generateHashCode(AttributeValue attributeValue)
Generates a hash code for the provided attribute value. |
java.lang.String |
getDescription()
Retrieves the description for this matching rule. |
java.lang.String |
getName()
Retrieves the common name for this matching rule. |
java.lang.String |
getOID()
Retrieves the OID for this matching rule. |
java.lang.String |
getSyntaxOID()
Retrieves the OID of the syntax with which this matching rule is associated. |
void |
initializeMatchingRule(EqualityMatchingRuleCfg configuration)
Initializes this matching rule based on the information in the provided configuration entry. |
ByteString |
normalizeValue(ByteString value)
Retrieves the normalized form of the provided value, which is best suited for efficiently performing matching operations on that value. |
ConditionResult |
valuesMatch(ByteString attributeValue,
ByteString assertionValue)
Indicates whether the provided attribute value should be considered a match for the given assertion value. |
| Methods inherited from class org.opends.server.api.MatchingRule |
|---|
equals, finalizeMatchingRule, getNameOrOID, hashCode, isConfigurationAcceptable, isObsolete, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthPasswordEqualityMatchingRule()
| Method Detail |
|---|
public void initializeMatchingRule(EqualityMatchingRuleCfg configuration)
throws ConfigException,
InitializationException
initializeMatchingRule in class MatchingRule<EqualityMatchingRuleCfg>configuration - The configuration to use to intialize this
matching rule.
ConfigException - If an unrecoverable problem arises in
the process of performing the
initialization.
InitializationException - If a problem that is not
configuration-related occurs
during initialization.public java.lang.String getName()
getName in class MatchingRule<EqualityMatchingRuleCfg>null if
it does not have a name.public java.lang.String getOID()
getOID in class MatchingRule<EqualityMatchingRuleCfg>public java.lang.String getDescription()
getDescription in class MatchingRule<EqualityMatchingRuleCfg>null if
there is none.public java.lang.String getSyntaxOID()
getSyntaxOID in class MatchingRule<EqualityMatchingRuleCfg>
public ByteString normalizeValue(ByteString value)
throws DirectoryException
normalizeValue in class MatchingRule<EqualityMatchingRuleCfg>value - The value to be normalized.
DirectoryException - If the provided value is invalid according to
the associated attribute syntax.
public boolean areEqual(ByteString value1,
ByteString value2)
areEqual in class EqualityMatchingRulevalue1 - The normalized form of the first value to compare.value2 - The normalized form of the second value to compare.
true if the provided values are equal, or
false if not.
public ConditionResult valuesMatch(ByteString attributeValue,
ByteString assertionValue)
areEqual method.
valuesMatch in class EqualityMatchingRuleattributeValue - The attribute value in a form that has been
normalized according to this matching rule.assertionValue - The assertion value in a form that has been
normalized according to this matching rule.
true if the attribute value should be considered a
match for the provided assertion value, or false if
not.public int generateHashCode(AttributeValue attributeValue)
generateHashCode in class EqualityMatchingRuleattributeValue - The attribute value for which to generate the hash
code.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||