All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.mhuang.pacebox.springboot.autoconfiguration.datasecure.DataSecureInfo Maven / Gradle / Ivy

The newest version!
package tech.mhuang.pacebox.springboot.autoconfiguration.datasecure;

import lombok.Data;
import lombok.EqualsAndHashCode;
import tech.mhuang.pacebox.springboot.autoconfiguration.datasecure.impl.AESDataSecureImpl;

/**
 * 加解密配置
 *
 * @author mhuang
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class DataSecureInfo {

    /**
     * 是否启动加解密
     */
    private boolean enable;

    /**
     * 公钥(加密时使用)
     */
    private String publicKey;

    /**
     * 私钥(解密时使用)
     */
    private String privateKey;

    /**
     * 加密/解密用到的接口(默认是AES)
     */
    private Class encryptDataInterface = AESDataSecureImpl.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy