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

X509Certificate should return X500Principal

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • security-libs
    • beta2
    • generic
    • solaris_7
    • Verified

      two new methods should be added to java.security.cert.X509Certificate:

      > javax.security.auth.x500.X500Principal getIssuerX500Principal()
      > javax.security.auth.x500.X500Principal getSubjectX500Principal()

      currently, applications call:

      java.security.Principal getIssuerDN()
      java.security.Principal getSubjectDN()

      the returned class is vendor-specific and therefore applications
      can not interoperate efficiently. by returning the new public
      javax.security.auth.x500.X500Principal class, applications
      can rely on a common public X500Principal class.

      as part of this fix, sun.security.x509.X500Name will no longer
      subclass javax.security.auth.X500Principal,
      and X500Principal will no longer have a protected no-arg constructor
      (which was necessary to allow X500Name to subclass it).

            claisunw Charlie Lai (Inactive)
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: