| | |
| | | throw new ConfigException(ERR_CONFIG_ATTR_DN_NULL.get(getName())); |
| | | } |
| | | |
| | | ByteString attrValue = ByteString.valueOf(value.toString()); |
| | | ByteString attrValue = ByteString.valueOfUtf8(value.toString()); |
| | | if (valueSet.contains(attrValue)) |
| | | { |
| | | throw new ConfigException(ERR_CONFIG_ATTR_ADD_VALUES_ALREADY_EXISTS.get(getName(), value)); |
| | |
| | | { |
| | | return new LinkedHashSet<>(0); |
| | | } |
| | | return newLinkedHashSet(ByteString.valueOf(value.toString())); |
| | | return newLinkedHashSet(ByteString.valueOfUtf8(value.toString())); |
| | | } |
| | | |
| | | |
| | |
| | | LinkedHashSet<ByteString> valueSet = new LinkedHashSet<>(values.size()); |
| | | for (DN value : values) |
| | | { |
| | | valueSet.add(ByteString.valueOf(value.toString())); |
| | | valueSet.add(ByteString.valueOfUtf8(value.toString())); |
| | | } |
| | | return valueSet; |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | valueSet.add(ByteString.valueOf(dn.toString())); |
| | | valueSet.add(ByteString.valueOfUtf8(dn.toString())); |
| | | } |
| | | |
| | | // If this method was configured to continue on error, then it is possible |