RuoYi-Vue-Plus/ruoyi-common/src/main/java/com/ruoyi/common/encrypt/EncryptContext.java
mayuanfei f688f1570e 修改如下:
1.深拷贝修改为set形式
2.加密执行者从基类继承,强制构造方法带参数
2023-01-17 17:31:15 +08:00

37 lines
578 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.ruoyi.common.encrypt;
import com.ruoyi.common.enums.EncodeType;
import lombok.Builder;
import lombok.Data;
/**
* 加密上下文。用于encryptor传递必要的参数。
* 隔离配置和注解
*
* @author 老马
* @date 2023-01-17 08:31
*/
@Data
@Builder
public class EncryptContext {
/**
* 安全秘钥
*/
private String password;
/**
* 公钥
*/
private String publicKey;
/**
* 私钥
*/
private String privateKey;
/**
* 编码方式base64/hex
*/
private EncodeType encode;
}