public class RsaCryptoUtil extends Object
构造器和说明 |
---|
RsaCryptoUtil() |
限定符和类型 | 方法和说明 |
---|---|
static String |
decryptOAEP(String ciphertext,
PrivateKey privateKey) |
static void |
encryptFields(Object encryptObject,
X509Certificate certificate) |
static String |
encryptOAEP(String message,
X509Certificate certificate) |
public static void encryptFields(Object encryptObject, X509Certificate certificate) throws WxPayException
WxPayException
public static String encryptOAEP(String message, X509Certificate certificate) throws IllegalBlockSizeException
public static String decryptOAEP(String ciphertext, PrivateKey privateKey) throws BadPaddingException
Copyright © 2023. All rights reserved.