| | |
| | | public void initializeSyntax(ConfigEntry configEntry) |
| | | throws ConfigException |
| | | { |
| | | |
| | | defaultEqualityMatchingRule = |
| | | DirectoryServer.getEqualityMatchingRule(EMR_USER_PASSWORD_EXACT_OID); |
| | | if (defaultEqualityMatchingRule == null) |
| | |
| | | */ |
| | | public String getSyntaxName() |
| | | { |
| | | |
| | | return SYNTAX_USER_PASSWORD_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getOID() |
| | | { |
| | | |
| | | return SYNTAX_USER_PASSWORD_OID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getDescription() |
| | | { |
| | | |
| | | return SYNTAX_USER_PASSWORD_DESCRIPTION; |
| | | } |
| | | |
| | |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | { |
| | | |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | | |
| | |
| | | */ |
| | | public OrderingMatchingRule getOrderingMatchingRule() |
| | | { |
| | | |
| | | // There is no ordering matching rule by default. |
| | | return null; |
| | | } |
| | |
| | | */ |
| | | public SubstringMatchingRule getSubstringMatchingRule() |
| | | { |
| | | |
| | | // There is no substring matching rule by default. |
| | | return null; |
| | | } |
| | |
| | | */ |
| | | public ApproximateMatchingRule getApproximateMatchingRule() |
| | | { |
| | | |
| | | // There is no approximate matching rule by default. |
| | | return null; |
| | | } |
| | |
| | | public boolean valueIsAcceptable(ByteString value, |
| | | StringBuilder invalidReason) |
| | | { |
| | | |
| | | |
| | | // We have to accept any value here because in many cases the value will not |
| | | // have been encoded by the time this method is called. |
| | | return true; |
| | |
| | | public static String[] decodeUserPassword(String userPasswordValue) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | // Make sure that there actually is a value to decode. |
| | | if ((userPasswordValue == null) || (userPasswordValue.length() == 0)) |
| | | { |
| | |
| | | */ |
| | | public static boolean isEncoded(ByteString value) |
| | | { |
| | | |
| | | |
| | | // If the value is null or empty, then it's not. |
| | | byte[] valueBytes; |
| | | if ((value == null) || ((valueBytes = value.value()).length == 0)) |