Skip to content

Commit 3a5b1af

Browse files
author
Daniel DeGroff
committed
JavaDoc
1 parent 0dab0d1 commit 3a5b1af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/io/fusionauth/pem/PEMEncoder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class PEMEncoder {
5656
*
5757
* @param privateKey the private key
5858
* @param publicKey the public key
59-
* @return a string encoded PEM
59+
* @return a PEM Encoded key
6060
*/
6161
public String encode(PrivateKey privateKey, PublicKey publicKey) {
6262
if (privateKey == null && publicKey == null) {
@@ -149,7 +149,7 @@ public String encode(PrivateKey privateKey, PublicKey publicKey) {
149149
* Both values may no be null.
150150
*
151151
* @param key the key, this parameter may be of type <code>PrivateKey</code> <code>PublicKey</code>
152-
* @return a string encoded PEM
152+
* @return a PEM encoded key
153153
*/
154154
public String encode(Key key) {
155155
if (key instanceof PrivateKey) {
@@ -162,10 +162,10 @@ public String encode(Key key) {
162162
}
163163

164164
/**
165-
* Encodes the certificate as a X.509 PEM certificate.
165+
* Encode the X.509 certificate in a PEM format and return a string.
166166
*
167167
* @param certificate The certificate
168-
* @return The encoded PEM certificate.
168+
* @return a PEM encoded certificate
169169
*/
170170
public String encode(Certificate certificate) {
171171
try {

0 commit comments

Comments
 (0)