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
This commit is contained in:
Aayush Atharva 2021-07-26 12:01:49 +05:30 committed by GitHub
parent 7110997072
commit eb99f6c74a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);