RDN rdn = x500Name.getRDNs(BCStyle.CN)[0];
return IETFUtils.valueToString(rdn.getFirst().getValue());
}
protected String getValue(final X500Principal principal) {
X500Name x500Name = new X500Name(principal.getName());
RDN rdn = x500Name.getRDNs(BCStyle.CN)[0];
return IETFUtils.valueToString(rdn.getFirst().getValue());
}