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

sun.security.x509.SerialNumber constructor should not accept negative numbers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • tbd
    • 7-pool, 8, 9
    • security-libs
    • None

      We could create a SerailNumber object with Negative numbers. I feel it should throw IllegalArgumentException for negative numbers as the certificate serial number cannot be negative.

                  BigInteger bigInteger0 = new BigInteger("-1");
                  SerialNumber serialNumber1 = new SerialNumber(bigIntegerN);
       

            snikandrova Svetlana Nikandrova (Inactive)
            rnairsunw Raghu Nair
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: