cn.amossun.starter.common.properties.DataSecurityProperties Maven / Gradle / Ivy
package cn.amossun.starter.common.properties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @description:
* @author: Amos.Sun
* @DateTime: 2020/03/30 15:41
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DataSecurityProperties {
/**
* 是否开启
*/
private Boolean enabled = false;
/**
* 加密模式填充方式
*/
private String cipherModePadding;
/**
* 密码
*/
private String cryptogram;
/**
* 偏移量
*/
private String offset;
/**
* 输出默认: base64
*/
private String outType = "base64";
/**
* 字符集默认 UTF-8
*/
private String characterName = "UTF-8";
private String dataSuffix;
private String dataBeforeSuffix;
private String dataAfterSuffix;
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public String getCipherModePadding() {
return cipherModePadding;
}
public void setCipherModePadding(String cipherModePadding) {
this.cipherModePadding = cipherModePadding;
}
public String getCryptogram() {
return cryptogram;
}
public void setCryptogram(String cryptogram) {
this.cryptogram = cryptogram;
}
public String getOffset() {
return offset;
}
public void setOffset(String offset) {
this.offset = offset;
}
public String getOutType() {
return outType;
}
public void setOutType(String outType) {
this.outType = outType;
}
public String getCharacterName() {
return characterName;
}
public void setCharacterName(String characterName) {
this.characterName = characterName;
}
public String getDataSuffix() {
return dataSuffix;
}
public void setDataSuffix(String dataSuffix) {
this.dataSuffix = dataSuffix;
}
public String getDataBeforeSuffix() {
return dataBeforeSuffix;
}
public void setDataBeforeSuffix(String dataBeforeSuffix) {
this.dataBeforeSuffix = dataBeforeSuffix;
}
public String getDataAfterSuffix() {
return dataAfterSuffix;
}
public void setDataAfterSuffix(String dataAfterSuffix) {
this.dataAfterSuffix = dataAfterSuffix;
}
}