/* * Returns the label String from a X50name */ private String issuerString(Principal principal) { // 19902 // try { // if (principal instanceof X500Name) { // StringBuffer buf = new StringBuffer(); // X500Name name = (X500Name) principal; // buf.append((name.getDNQualifier() != null) ? name.getDNQualifier() + ", " : ""); // buf.append(name.getCommonName()); // buf.append((name.getOrganizationalUnit() != null) ? ", " + name.getOrganizationalUnit() : // ""); // buf.append((name.getOrganization() != null) ? ", " + name.getOrganization() : ""); // buf.append((name.getLocality() != null) ? ", " + name.getLocality() : ""); // buf.append((name.getCountry() != null) ? ", " + name.getCountry() : ""); // return new String(buf); // } // } catch (Exception e) { // UpdateCore.warn("Error parsing X500 Certificate",e); // } return principal.toString(); }
public String toString() { return subject.toString(); }