|
@@ -15,8 +15,6 @@ import kd.bos.servicehelper.user.UserServiceHelper;
|
|
|
import kd.bos.util.StringUtils;
|
|
|
import nckd.base.helper.CommonHelperUtils;
|
|
|
import okhttp3.*;
|
|
|
-import sun.misc.BASE64Encoder;
|
|
|
-
|
|
|
import javax.crypto.Cipher;
|
|
|
import java.io.IOException;
|
|
|
import java.security.KeyFactory;
|
|
@@ -278,7 +276,6 @@ public class SRMHelperUtils {
|
|
|
*/
|
|
|
private static RSAPrivateKey getPrivateKey(String privateKey) throws Exception {
|
|
|
try {
|
|
|
- BASE64Encoder encoder = new BASE64Encoder();
|
|
|
return (RSAPrivateKey) KeyFactory.getInstance("RSA").generatePrivate(new PKCS8EncodedKeySpec(SRMBase64Util.getDecoder().decode(privateKey)));
|
|
|
} catch (Exception var2) {
|
|
|
System.out.println("RSA get Private Key failed!"+var2.toString());
|