Examples of normalizeAssertionValue()


Examples of org.nasutekds.server.api.MatchingRule.normalizeAssertionValue()

    // Normalize the assertion value using the matching rule.
    ByteString normalizedValue;
    try
    {
        normalizedValue =
              matchingRule.
               normalizeAssertionValue(assertionValue.getValue());
    }
    catch (Exception e)
    {
      if (debugEnabled())
View Full Code Here

Examples of org.nasutekds.server.api.MatchingRule.normalizeAssertionValue()

  @Test(dataProvider="partialDateTimeValues")
  public void testPartialDateNTimeMatch(long attributeValue,String assertionValue) throws Exception
  {
    MatchingRule partialTimeRule = DirectoryServer.getMatchingRule(
            EXT_PARTIAL_DATE_TIME_NAME.toLowerCase());
    ByteString str = partialTimeRule.normalizeAssertionValue(ByteString.valueOf(assertionValue));
    assertTrue(partialTimeRule.valuesMatch(ByteString.valueOf(attributeValue), str) ==
            ConditionResult.TRUE);
  }

View Full Code Here

Examples of org.nasutekds.server.api.MatchingRule.normalizeAssertionValue()

            DirectoryServer.getOrderingMatchingRule(
            EXT_OMR_RELATIVE_TIME_LT_ALT_NAME.toLowerCase());
    boolean exception = false;
    try
    {
      relativeTimeLTRule.normalizeAssertionValue(ByteString.valueOf(assertion));
    }
    catch(DirectoryException e)
    {
      //invalid values will throw an exception.
      exception = true;
View Full Code Here

Examples of org.nasutekds.server.api.MatchingRule.normalizeAssertionValue()

    MatchingRule partialDTRule =
            DirectoryServer.getMatchingRule(EXT_PARTIAL_DATE_TIME_OID);
    boolean exception = false;
    try
    {
      partialDTRule.normalizeAssertionValue(ByteString.valueOf(assertion));
    }
    catch(DirectoryException e)
    {
      //invalid values will throw an exception.
      exception = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.