Skip to content

Commit

Permalink
Merge pull request #2834 from rsearls/RESTEASY-2934-replace-PEMWriter
Browse files Browse the repository at this point in the history
[RESTEASY-2934] replaced deprecated bouncycastle PEMWriter with JcaPE…
  • Loading branch information
rsearls committed Jun 14, 2021
2 parents 8af84a3 + c0cb130 commit a3e27f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.jboss.resteasy.jose.jws.util;

import org.bouncycastle.openssl.PEMWriter;
import org.bouncycastle.openssl.jcajce.JcaPEMWriter;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -116,7 +116,7 @@ private static String encode(Object obj) {

try {
StringWriter writer = new StringWriter();
PEMWriter pemWriter = new PEMWriter(writer);
JcaPEMWriter pemWriter = new JcaPEMWriter(writer);
pemWriter.writeObject(obj);
pemWriter.flush();
pemWriter.close();
Expand Down

0 comments on commit a3e27f6

Please sign in to comment.