-
Notifications
You must be signed in to change notification settings - Fork 5.9k
8358171: Additional code coverage for PEM API #25588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back fguallini! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
@fguallini The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
String algorithm = switch(privateKey.getAlgorithm()) { | ||
case "EC" -> "SHA256withECDSA"; | ||
case "EdDSA" -> "EdDSA"; | ||
case "RSASSA-PSS" -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case "RSASSA-PSS" -> { | |
case "RSASSA-PSS" -> { |
|
||
public static void main(String[] args) throws Exception { | ||
PEMEncoder encoder = PEMEncoder.of(); | ||
try(ExecutorService ex = Executors.newFixedThreadPool(THREAD_COUNT)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try(ExecutorService ex = Executors.newFixedThreadPool(THREAD_COUNT)) { | |
try (ExecutorService ex = Executors.newFixedThreadPool(THREAD_COUNT)) { |
The tests included in this PR add code coverage mainly to the following classes introduced/updated by JEP 470 (PEM): PEMDecoder, PEMEncoder, Pem, EncryptedPrivateKeyInfo and the Key factories. In addition, more tests are included for RSAPSS, multithreading, jdk.epkcs8.defaultAlgorithm property and some negative testing
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25588/head:pull/25588
$ git checkout pull/25588
Update a local copy of the PR:
$ git checkout pull/25588
$ git pull https://git.openjdk.org/jdk.git pull/25588/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25588
View PR using the GUI difftool:
$ git pr show -t 25588
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25588.diff
Using Webrev
Link to Webrev Comment