Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8308010 X509Key and PKCS8Key allows garbage bytes at the end
  3. JDK-8319965

Release Note: KeyFactory Will Reject EncodedKeySpec With Extra Bytes at the End

XMLWordPrintable

      If `KeyFactory.generatePrivate` or `KeyFactory.generatePublic` is called on a `PKCS8EncodedKeySpec` or `X509EncodedKeySpec` object that has extra bytes at the end of its ASN.1 encoding, an `InvalidKeySpecException` will be thrown. Before this code change, these extra bytes were ignored.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: