Skip to content

Commit

Permalink
[RESTEASY-2934] replaced deprecated bouncycastle PEMWriter with JcaPE…
Browse files Browse the repository at this point in the history
…MWriter
  • Loading branch information
rsearls committed Jun 14, 2021
1 parent e8bfd79 commit c0cb130
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 c0cb130

Please sign in to comment.