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

X509Certificate Javadoc should explain getIssuerDN() vs getIssuerX500Principal()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description



      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)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: