证书导入结果修改
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.sunyard.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 证书导入结果封装类
|
||||
*/
|
||||
public class ImportResult {
|
||||
/** 成功状态码 */
|
||||
public static final int CODE_SUCCESS = 2000;
|
||||
/** 部分成功状态码 */
|
||||
public static final int CODE_PARTIAL_SUCCESS = 2001;
|
||||
/** 完全失败状态码 */
|
||||
public static final int CODE_COMPLETE_FAILURE = 2002;
|
||||
/** 参数错误状态码 */
|
||||
public static final int CODE_INVALID_PARAM = 4001;
|
||||
|
||||
private int code; //返回码
|
||||
private String certDn; // 证书主题(DN)
|
||||
private List<String> errCnt; // 详细错误列表(每个失败的服务器)
|
||||
|
||||
// 构造方法
|
||||
public ImportResult() {
|
||||
}
|
||||
|
||||
public ImportResult(int code, String certDn) {
|
||||
this.code = code;
|
||||
this.certDn = certDn;
|
||||
}
|
||||
|
||||
// Getters and Setters
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
public String getCertDn() {
|
||||
return certDn;
|
||||
}
|
||||
|
||||
public void setCertDn(String certDn) {
|
||||
this.certDn = certDn;
|
||||
}
|
||||
|
||||
public List<String> getErrCnt() {
|
||||
return errCnt;
|
||||
}
|
||||
|
||||
public void setErrCnt(List<String> errCnt) {
|
||||
this.errCnt = errCnt;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user