public class RSAEnctryptor extends Object implements AsymmetricEncryptor
public byte[] pubEncode(String data)
pubEncode 在接口中 AsymmetricEncryptordata - 待加密内容LeonaRuntimeException - RSA公钥加密异常public byte[] priDecode(byte[] data)
priDecode 在接口中 AsymmetricEncryptordata - 待解密内容LeonaRuntimeException - RSA私钥解密异常public byte[] sign(byte[] data)
sign 在接口中 AsymmetricEncryptordata - 待签名内容LeonaRuntimeException - RSA加签异常public boolean verify(byte[] content,
byte[] sign)
verify 在接口中 AsymmetricEncryptorcontent - 待验签内容sign - 签名LeonaRuntimeException - RSA验签异常Copyright © 2020. All rights reserved.