/** * Gets the first value of the given type that appears in the attribute list of any RDN in the sequence. * * @param type Attribute type. * * @return Value of first attribute of given type or null if no attributes of given type exist. */ public String getValue(final AttributeType type) { final List<String> values = getValues(type); if (values.size() > 0) { return values.get(0); } return null; }