Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4638294

X509Certificate Javadoc should explain getIssuerDN() vs getIssuerX500Principal()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • security-libs



      Name: gm110360 Date: 02/14/2002


      FULL PRODUCT VERSION :
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-
      b84)
      Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)


      A DESCRIPTION OF THE PROBLEM :
      The javadoc should explain that the recommended way
      for retrieving a principal string from a certificate is
      get.SubjectX500Principal().getName() or
      getIssuerX500Principal() .getName() instead of
      getSubjectDN().getName() or
      getIssuerDN().getName(). That latter return Strings with
      an implemenation defined format, which causes
      problems comparing. Also, using these strings with
      X509CerSelector object causes problems.

      Reference: internal bug ID 4619691

      This bug can be reproduced always.
      (Review ID: 139616)
      ======================================================================

            xuelei Xuelei Fan
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: