类 RSAConfiguration
- java.lang.Object
-
- cloud.longfa.encrypt.config.EncryptProvider
-
- cloud.longfa.encrypt.config.RSAConfiguration
-
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean
@ConfigurationProperties(prefix="badger.encrypt") public class RSAConfiguration extends EncryptProvider implements org.springframework.beans.factory.InitializingBean
The type Rsa configuration.- 从以下版本开始:
- : 1.0.0
- 作者:
- : longfa
-
-
字段概要
-
从类继承的字段 cloud.longfa.encrypt.config.EncryptProvider
BADGER, encryptFactory
-
-
构造器概要
构造器 构造器 说明 RSAConfiguration()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterPropertiesSet()StringgetPrivateKeyBase64()Gets private key base 64.StringgetPublicKeyBase64()Gets public key base 64.voidsetPrivateKeyBase64(String privateKeyBase64)Sets private key base 64.voidsetPublicKeyBase64(String publicKeyBase64)Sets public key base 64.-
从类继承的方法 cloud.longfa.encrypt.config.EncryptProvider
aesIv, aesKey, privateKeyBase64, publicKeyBase64, sm4Iv, sm4Key
-
-
-
-
方法详细资料
-
setPrivateKeyBase64
public void setPrivateKeyBase64(String privateKeyBase64)
Sets private key base 64.- 参数:
privateKeyBase64- the private key base 64
-
setPublicKeyBase64
public void setPublicKeyBase64(String publicKeyBase64)
Sets public key base 64.- 参数:
publicKeyBase64- the public key base 64
-
getPrivateKeyBase64
public String getPrivateKeyBase64()
Gets private key base 64.- 返回:
- the private key base 64
-
getPublicKeyBase64
public String getPublicKeyBase64()
Gets public key base 64.- 返回:
- the public key base 64
-
afterPropertiesSet
public void afterPropertiesSet()
- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean
-
-