/** * Returns a string representation of the object. * * @return The string */ public String toString() { StringBuffer buffer = new StringBuffer("SnmpContextv3["); buffer.append("host=").append(hostAddr); buffer.append(", port=").append(hostPort); buffer.append(", socketType=").append(typeSocket); buffer.append(", contextEngineId=").append(SnmpUtilities.toHexString(contextEngineId)); buffer.append(", contextName=").append(contextName); buffer.append(", userName="******", useAuthentication=").append(useAuthentication); buffer.append(", authenticationProtocol=").append(ProtocolNames[authenticationProtocol]); buffer.append(", userAuthenticationPassword="******", usePrivacy=").append(usePrivacy); buffer.append(", userPrivacyPassword="******"]"); return buffer.toString(); }