public String toString() {
StringBuffer buff = new StringBuffer("AgentConfig[");
buff.append("Address: "+getAddress());
buff.append(", ProxyForAddress: "+getProxyFor());
buff.append(", Port: "+getPort());
buff.append(", Community: "+getReadCommunity());
buff.append(", Timeout: "+getTimeout());
buff.append(", Retries: "+getRetries());
buff.append(", MaxVarsPerPdu: "+getMaxVarsPerPdu());
buff.append(", MaxRepetitions: "+getMaxRepetitions());
buff.append(", Max request size: "+getMaxRequestSize());
buff.append(", Version: "+versionToString(getVersion()));
if (getVersion() == VERSION3) {
buff.append(", Security level: "+getSecurityLevel());
buff.append(", Security name: "+getSecurityName());
buff.append(", auth-passphrase: "+getAuthPassPhrase());
buff.append(", auth-protocol: "+getAuthProtocol());
buff.append(", priv-passprhase: "+getPrivPassPhrase());
buff.append(", priv-protocol: "+getPrivProtocol());
}
buff.append("]");
return buff.toString();
}