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.
------------- Commit messages: - removed unnecessary module in test - Fixed copyright in DerValue - Fixed copyright date - Added getTime method to DerValue that calls either getUTCTime or getGeneralizedTime depending on tag value. Added test - Added single argument method to correctly encode time Changes: https://git.openjdk.org/jdk/pull/14617/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14617&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8279254 Stats: 81 lines in 4 files changed: 77 ins; 0 del; 4 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