| | |
| | | public void initializeMatchingRule(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | // No initialization is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getName() |
| | | { |
| | | |
| | | return EMR_GENERALIZED_TIME_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getOID() |
| | | { |
| | | |
| | | return EMR_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 boolean areEqual(ByteString value1, ByteString value2) |
| | | { |
| | | |
| | | // Since the values are already normalized, we just need to compare the |
| | | // associated byte arrays. |
| | | return Arrays.equals(value1.value(), value2.value()); |