byte[] ext = getExtensionValue("2.5.29.17"); if (ext == null)
Extension e = getExtension(SubjectAlternativeNames.ID); if (e != null) { return ((SubjectAlternativeNames) e.getValue()).getNames(); }
  public Collection getSubjectAlternativeNames()    throws CertificateParsingException  {    byte[] ext = getExtensionValue("2.5.29.17");    if (ext == null)      return null;    return getAltNames(ext);  }