Hi, I cannot imagine that there is really the issue you are describing. Are you sure, you do not mix up localized passwords from non-localized?
Best regards, Frank Am 04.09.2011 22:24, schrieb Ole Karlson: > I'm having strange issues when setting the passphrases, the following > works (traps are sent, and recevied ok): > > protected void addUsmUser(USM usm) { > UsmUser user = new UsmUser(new OctetString(getSsecurityName()), > AuthSHA.ID, > new OctetString("my_password"), > PrivAES128.ID, > new OctetString("my_password")); > usm.addUser(user.getSecurityName(), usm.getLocalEngineID(), user); > } > > While the following does not work: > private String getMyPassword() { > return "my_password"; > } > > protected void addUsmUser(USM usm) { > UsmUser user = new UsmUser(new OctetString(getSsecurityName()), > AuthSHA.ID, > new OctetString(getMyPassword()), > PrivAES128.ID, > new OctetString(getMyPassword())); > usm.addUser(user.getSecurityName(), usm.getLocalEngineID(), user); > } > > In other words, when using a hardcoded password to initialize the > OctetString everything works ok, and when the OctetString is initialized > by a String variable with the same value it does not work. What am I > missing? > > Regards > Ole > _______________________________________________ > SNMP4J mailing list > SNMP4J@agentpp.org > http://lists.agentpp.org/mailman/listinfo/snmp4j _______________________________________________ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j