From eb99f6c74ae91045cc91b4b4d27d86dcda774f79 Mon Sep 17 00:00:00 2001 From: Aayush Atharva Date: Mon, 26 Jul 2021 12:01:49 +0530 Subject: [PATCH] Fix JavaDoc of SelfSignedCertiticate regarding Private Key type (#11510) Motivation: SelfSignedCertificate generates EC/RSA key pair and this should be explicitly mentioned in JavaDoc. Currently, only "RSA" was mentioned not "EC". Modification: Changed RSA to EC/RSA Result: Correct JavaDoc --- .../io/netty/handler/ssl/util/SelfSignedCertificate.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handler/src/main/java/io/netty/handler/ssl/util/SelfSignedCertificate.java b/handler/src/main/java/io/netty/handler/ssl/util/SelfSignedCertificate.java index d18ceae369..95aba1da94 100644 --- a/handler/src/main/java/io/netty/handler/ssl/util/SelfSignedCertificate.java +++ b/handler/src/main/java/io/netty/handler/ssl/util/SelfSignedCertificate.java @@ -285,7 +285,7 @@ public final class SelfSignedCertificate { } /** - * Returns the generated RSA private key file in PEM format. + * Returns the generated EC/RSA private key file in PEM format. */ public File privateKey() { return privateKey; @@ -299,14 +299,14 @@ public final class SelfSignedCertificate { } /** - * Returns the generated RSA private key. + * Returns the generated EC/RSA private key. */ public PrivateKey key() { return key; } /** - * Deletes the generated X.509 certificate file and RSA private key file. + * Deletes the generated X.509 certificate file and EC/RSA private key file. */ public void delete() { safeDelete(certificate);