| | |
| | | public void initializeMatchingRule(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | // No initialization is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getName() |
| | | { |
| | | |
| | | return OMR_GENERALIZED_TIME_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getOID() |
| | | { |
| | | |
| | | return OMR_GENERALIZED_TIME_OID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getDescription() |
| | | { |
| | | |
| | | // There is no standard description for this matching rule. |
| | | return null; |
| | | } |
| | |
| | | */ |
| | | public String getSyntaxOID() |
| | | { |
| | | |
| | | return SYNTAX_GENERALIZED_TIME_OID; |
| | | } |
| | | |
| | |
| | | public ByteString normalizeValue(ByteString value) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | String valueString = value.stringValue().toUpperCase(); |
| | | int length = valueString.length(); |
| | | |
| | |
| | | int second, int millisecond) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | // First, check to see if we are at the end of the string. If so, then |
| | | // that could either result in an exception or assuming that we should just |
| | | // use the local time zone. |
| | |
| | | */ |
| | | public int compareValues(ByteString value1, ByteString value2) |
| | | { |
| | | |
| | | return compare(value1.value(), value2.value()); |
| | | } |
| | | |
| | |
| | | */ |
| | | public int compare(byte[] b1, byte[] b2) |
| | | { |
| | | |
| | | int minLength = Math.min(b1.length, b2.length); |
| | | |
| | | for (int i=0; i < minLength; i++) |