[SNMP4J] Encrypted Passphrases
Jochen Katz
katz at agentpp.com
Fri Jul 29 22:44:40 CEST 2011
Hi,
> I¹m trying to use SNMP4J to test AUTH_NOPRIV setup for a device that has the
> auth passphrase set as encrypted digest (believe the passphrase is entered
> as a hexa-decimal numbers)
so you are directly setting the key used for authentication.
> I looked at UsmUser API and did not see a alternate way of setting encrypted
> passphrases. How do I set encrypted passphrases?
To set the keys for a user, you can use the following constructor (the
passed passphrases are in fact used as keys):
public UsmUser(OctetString securityName,
OID authenticationProtocol,
OctetString authenticationPassphrase,
OID privacyProtocol,
OctetString privacyPassphrase,
OctetString localizationEngineID)
Regards,
Jochen
More information about the SNMP4J
mailing list