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

X509CertImpl should override getSubject/IssuerX500Principal

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.1
    • 1.4.0
    • security-libs
    • None
    • hopper
    • generic
    • generic
    • Verified

      X509CertImpl currently inherits the methods getSubjectX500Principal() and getIssuerX500Principal() from java.security.cert.X509Certificate. That means each time one of these methods is called, a new X500Principal object is created from X500Name.toString().

      This is both inefficient and may lead to a loss of ASN.1 string type encoding information. We should override the methods to create an X500Principal object from the DER encoding the first time the method is called and return the same instance of each call. This is an easy change that we may want to consider for Hopper.

            andreas Andreas Sterbenz
            andreas Andreas Sterbenz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: