public class SM2NativeTextEncryptor extends SM2TextEncryptor
| 限定符和类型 | 字段和说明 |
|---|---|
protected LoggerHandle |
logger |
| 构造器和说明 |
|---|
SM2NativeTextEncryptor(EncryptionProperties encryptionProperties) |
SM2NativeTextEncryptor(String pubKeyHex,
String prvKeyHex) |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.aotcloud.smcrypto.Sm2Utils |
createNativeSm2Util() |
String |
decrypt(String encryptedText) |
String |
encrypt(String text) |
cn.aotcloud.smcrypto.Sm2Utils |
getNativeSm2Utils() |
createSm2Util, getPrvKeyHex, getPubKeyHex, getRsaPublicCode, getSm2Utilsprotected LoggerHandle logger
public SM2NativeTextEncryptor(EncryptionProperties encryptionProperties)
public String encrypt(String text)
encrypt 在接口中 org.springframework.security.crypto.encrypt.TextEncryptorencrypt 在类中 SM2TextEncryptorpublic String decrypt(String encryptedText)
decrypt 在接口中 org.springframework.security.crypto.encrypt.TextEncryptordecrypt 在类中 SM2TextEncryptorpublic cn.aotcloud.smcrypto.Sm2Utils getNativeSm2Utils()
public cn.aotcloud.smcrypto.Sm2Utils createNativeSm2Util()
Copyright © 2023. All rights reserved.