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

X509Certificate methods getNotAfter and getNotBefore should return Instant

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      java.util.Date is used as the return type of these functions which makes it difficult to use if the rest of the system is using java.time. You'd need to convert Date to Instant somewhere in your system which can cause errors and bugs. For something security related like X509Certificate I don't want to have to convert between Date and Instant.
      In general, it is a bad idea to keep using java.util.Date in the Java API, but especially so in security related API's.


            asajeev Anjana Sajeev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: