public void addSubjectName(Principal subjectName) throws IOException
public void addSubjectName(byte[] subjectName) throws IOException
  public void addSubjectName(Principal subjectName) throws IOException  {    if (subjectName instanceof X500DistinguishedName)      subjectNames.add(subjectName);    else if (subjectName instanceof X500Principal)      subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded()));    else      subjectNames.add(new X500DistinguishedName(subjectName.getName()));  }