-
Enhancement
-
Resolution: Fixed
-
P4
-
1.4.0
-
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.
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.
- relates to
-
JDK-4532023 check the JSSE source for other unnecessary DER->String->DER conversions
-
- Resolved
-
-
JDK-4531906 should consider moving X509KeyManager to using X500Principals instead.
-
- Resolved
-
-
JDK-4628548 X509Certificate.get[Subject,Issuer]X500Principal should preserve ASN.1 encoding
-
- Closed
-