RFR: 8279254: PKCS9Attribute SigningTime always encoded in UTFTime [v4]

Ben Perez duke at openjdk.org
Fri Jun 23 15:20:24 UTC 2023


> Added single-argument `putTime` method to `DerOutputStream` that selects the correct encoding based on the `Date` value. Similarly, a `getTime` method was added to `DerValue` to automatically call the correct decoding function based on the date type specified by the `tag`. Furthermore, the `encode` method in `PKCS9Attribute` was changed to utilize the new `putTime` method.

Ben Perez has updated the pull request incrementally with one additional commit since the last revision:

  Moved UTC date range to constants

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/14617/files
  - new: https://git.openjdk.org/jdk/pull/14617/files/fad36da0..db70499b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14617&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14617&range=02-03

  Stats: 13 lines in 1 file changed: 10 ins; 2 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/14617.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14617/head:pull/14617

PR: https://git.openjdk.org/jdk/pull/14617



More information about the security-dev mailing list