ArrayList<Attribute> ret = new ArrayList<Attribute>();
Attribute attr = null;
String value = CertTools.getPartFromDN(dirAttr, "countryOfResidence");
if (!StringUtils.isEmpty(value)) {
ASN1EncodableVector vec = new ASN1EncodableVector();
vec.add(new DERPrintableString(value));
attr = new Attribute(new DERObjectIdentifier(id_pda_countryOfResidence),new DERSet(vec));
ret.add(attr);
}
value = CertTools.getPartFromDN(dirAttr, "countryOfCitizenship");
if (!StringUtils.isEmpty(value)) {
ASN1EncodableVector vec = new ASN1EncodableVector();
vec.add(new DERPrintableString(value));
attr = new Attribute(new DERObjectIdentifier(id_pda_countryOfCitizenship),new DERSet(vec));
ret.add(attr);
}
value = CertTools.getPartFromDN(dirAttr, "gender");
if (!StringUtils.isEmpty(value)) {
ASN1EncodableVector vec = new ASN1EncodableVector();
vec.add(new DERPrintableString(value));
attr = new Attribute(new DERObjectIdentifier(id_pda_gender),new DERSet(vec));
ret.add(attr);
}
value = CertTools.getPartFromDN(dirAttr, "placeOfBirth");
if (!StringUtils.isEmpty(value)) {