public class SM2TextEncryptor extends SMTextEncryptor implements RsaPublicCodeHolder
| 限定符和类型 | 字段和说明 |
|---|---|
protected LoggerHandle |
logger |
| 构造器和说明 |
|---|
SM2TextEncryptor(EncryptionProperties encryptionProperties) |
SM2TextEncryptor(cn.aotcloud.smcrypto.Sm2Utils sm2Utils,
EncryptionProperties encryptionProperties)
已过时。
|
SM2TextEncryptor(cn.aotcloud.smcrypto.Sm2Utils sm2Utils,
String pubKeyHex,
String prvKeyHex)
已过时。
|
SM2TextEncryptor(String pubKeyHex,
String prvKeyHex) |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.aotcloud.smcrypto.Sm2Utils |
createSm2Util() |
String |
decrypt(String encryptedText) |
String |
encrypt(String text) |
String |
getPrvKeyHex() |
String |
getPubKeyHex() |
RsaPublicCode |
getRsaPublicCode() |
cn.aotcloud.smcrypto.Sm2Utils |
getSm2Utils() |
protected LoggerHandle logger
@Deprecated public SM2TextEncryptor(cn.aotcloud.smcrypto.Sm2Utils sm2Utils, EncryptionProperties encryptionProperties)
sm2Utils - encryptionProperties - @Deprecated public SM2TextEncryptor(cn.aotcloud.smcrypto.Sm2Utils sm2Utils, String pubKeyHex, String prvKeyHex)
sm2Utils - pubKeyHex - prvKeyHex - public SM2TextEncryptor(EncryptionProperties encryptionProperties)
public String encrypt(String text)
encrypt 在接口中 org.springframework.security.crypto.encrypt.TextEncryptorpublic String decrypt(String encryptedText)
decrypt 在接口中 org.springframework.security.crypto.encrypt.TextEncryptorpublic RsaPublicCode getRsaPublicCode()
getRsaPublicCode 在接口中 RsaPublicCodeHolderpublic cn.aotcloud.smcrypto.Sm2Utils getSm2Utils()
public cn.aotcloud.smcrypto.Sm2Utils createSm2Util()
public String getPubKeyHex()
public String getPrvKeyHex()
Copyright © 2023. All rights reserved.