| | |
| | | } |
| | | |
| | | |
| | | AttributeType attType = DirectoryServer.getAttributeTypeOrNull(type); |
| | | AttributeType attType = DirectoryServer.getAttributeType(type); |
| | | ByteString attVal = null; |
| | | if (attType != null) |
| | | { |
| | |
| | | |
| | | // input parameter |
| | | String rawAttTypeTest = type; |
| | | AttributeType attTypeTest = DirectoryServer.getAttributeTypeOrNull(type); |
| | | AttributeType attTypeTest = DirectoryServer.getAttributeType(type); |
| | | ByteString subInitialTest = ByteString.valueOfUtf8(subInitial); |
| | | List<ByteString> subAnyTest = new ArrayList<>(subAny.size()); |
| | | for (String s : subAny) |
| | |
| | | } |
| | | |
| | | // ( AttributeType attributeType, ByteString assertionValue |
| | | AttributeType attType = DirectoryServer.getAttributeTypeOrNull(type); |
| | | AttributeType attType = DirectoryServer.getAttributeType(type); |
| | | ByteString attVal = null; |
| | | if (attType != null) |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | AttributeType attType = DirectoryServer.getAttributeTypeOrNull(type); |
| | | AttributeType attType = DirectoryServer.getAttributeType(type); |
| | | ByteString attVal = null ; |
| | | if (attType != null) |
| | | { |
| | |
| | | assertEquals(mvf.getMatchType(), MatchedValuesFilter.PRESENT_TYPE); |
| | | |
| | | // ( AttributeType attributeType |
| | | AttributeType attType = DirectoryServer.getAttributeTypeOrNull(type); |
| | | AttributeType attType = DirectoryServer.getAttributeType(type); |
| | | |
| | | try |
| | | { |
| | |
| | | } |
| | | |
| | | // ( AttributeType attributeType, ByteString assertionValue |
| | | AttributeType attType = DirectoryServer.getAttributeTypeOrNull(type); |
| | | AttributeType attType = DirectoryServer.getAttributeType(type); |
| | | ByteString attVal = null ; |
| | | if (attType != null) |
| | | { |
| | |
| | | |
| | | // input value |
| | | String rawAttTypeTest = type ; |
| | | AttributeType attTypeTest = DirectoryServer.getAttributeTypeOrNull(type) ; |
| | | AttributeType attTypeTest = DirectoryServer.getAttributeType(type) ; |
| | | String matchingRuleIdTest = matchingRule.getOID() ; |
| | | ByteString attValueTest = (attTypeTest == null) ? null : ByteString.valueOfUtf8(value); |
| | | // parameter used for the test. |
| | |
| | | public void testDifferentNormalization(String type, ByteString value, |
| | | String assertion) |
| | | { |
| | | AttributeType attrType = DirectoryServer.getAttributeTypeOrNull("usercertificate"); |
| | | AttributeType attrType = DirectoryServer.getAttributeType("usercertificate"); |
| | | MatchedValuesFilter mvf = MatchedValuesFilter.createEqualityFilter(type, ByteString.valueOfUtf8(assertion)); |
| | | assertTrue(mvf.valueMatches(attrType, value)); |
| | | } |