- compare usercert_tab by subject raw bytes + certtype - generate single annotated CSV report - generate merge-<timestamp>.sql in current directory for DBA execution - preserve GBK DN bytes via ATTACH + INSERT OR REPLACE / UPDATE - compatible with sqlite3 3.6.20 and JDK 1.8
37 lines
1012 B
Java
37 lines
1012 B
Java
package com.sunyard.certcompare.model;
|
|
|
|
import com.sunyard.certcompare.util.Text;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 报表中的一行差异记录。
|
|
*/
|
|
public class CompareRow {
|
|
|
|
public final CompareCategory category;
|
|
public final CertKey key;
|
|
public final CertRecord main;
|
|
public final CertRecord slave;
|
|
public final List<FieldDiff> diffs;
|
|
public final List<String> notes;
|
|
public final String defaultChoice;
|
|
public final String dnText;
|
|
|
|
public CompareRow(CompareCategory category, CertKey key, CertRecord main, CertRecord slave,
|
|
List<FieldDiff> diffs, List<String> notes, String defaultChoice, String dnText) {
|
|
this.category = category;
|
|
this.key = key;
|
|
this.main = main;
|
|
this.slave = slave;
|
|
this.diffs = diffs;
|
|
this.notes = notes;
|
|
this.defaultChoice = defaultChoice;
|
|
this.dnText = dnText == null ? "" : dnText;
|
|
}
|
|
|
|
public String cn() {
|
|
return Text.cnFromDn(dnText);
|
|
}
|
|
}
|