org.bdware.doip.audit.writer.AuditProtocalLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doip-audit-tool Show documentation
Show all versions of doip-audit-tool Show documentation
doip audit tool developed by bdware
The newest version!
package org.bdware.doip.audit.writer;
public class AuditProtocalLog extends AuditLog {
long time;
String eventType;
public void setClientPubkey(String signer) {
if (this.client == null) client = new ClientInfo();
client.client_pubkey = signer;
}
public void setClientIP(String clientIP) {
if (this.client == null) client = new ClientInfo();
client.client_ip = clientIP;
}
public void setClientDoId(String clientDoId) {
if (this.client == null) client = new ClientInfo();
client.client_doid = clientDoId;
}
public void setServerPubkey(String signer) {
if (this.server == null) server = new ServerInfo();
server.server_pubkey = signer;
}
public void setServerIP(String serverIP) {
if (this.server == null) server = new ServerInfo();
server.server_ip = serverIP;
}
public void setServerDoId(String serverDoId) {
if (this.server == null) server = new ServerInfo();
server.server_doid = serverDoId;
}
static class ServerInfo {
String server_pubkey;
String server_ip;
String server_doid;
}
static class ClientInfo {
String client_pubkey;
String client_ip;
String client_doid;
}
static class DoidInfo {
String do_prefix;
String do_repo;
String do_data_id;
}
ServerInfo server;
ClientInfo client;
DoidInfo doid;
String op;
String status_code;
String request_hash;
String response_hash;
}