public class SM2Encryptor extends BaseAsymmetricEncryptor
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_USER_ID |
static String |
PROVIDER_NAME |
static String |
SIGN_ALGORITHM |
| 构造器和说明 |
|---|
SM2Encryptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
doDecrypt(String cipherTextBase64,
String charset,
String privateKey) |
protected String |
doEncrypt(String plainText,
String charset,
String publicKey) |
protected String |
doSign(String content,
String charset,
String privateKey) |
protected boolean |
doVerify(String content,
String charset,
String publicKey,
String sign) |
protected String |
getAsymmetricType() |
decrypt, encrypt, sign, verifypublic static String DEFAULT_USER_ID
protected String getAsymmetricType()
getAsymmetricType 在类中 BaseAsymmetricEncryptorprotected String doDecrypt(String cipherTextBase64, String charset, String privateKey) throws Exception
doDecrypt 在类中 BaseAsymmetricEncryptorExceptionprotected String doEncrypt(String plainText, String charset, String publicKey) throws Exception
doEncrypt 在类中 BaseAsymmetricEncryptorExceptionprotected String doSign(String content, String charset, String privateKey) throws Exception
doSign 在类中 BaseAsymmetricEncryptorExceptionCopyright © 2023. All rights reserved.