[SNMP4J] SNMP v3 USM

Jochen Katz katz at agentpp.com
Sun Sep 4 15:25:54 CEST 2005


Hi,

> usm.addUser(securityName, new UsmUser(securityName, authProtocolOID, authKey,
> privProtocolOID, privKey);
> 
> this specific user definition uses authentication and privacy.
> 
> Can I use the same security name to create a UserTarget with
> SecurityLevel.NOAUTH_NOPRIV or SecurityLevel.AUTH_NOPRIV?

no, each user only can exist once.

> Is required that I use SecurityLevel.AUTH_PRIV?

No, if you add a user with auth and priv keys you can use this user for
messages with all three security levels (noAuthNoPriv, AuthNoPriv and
AuthPriv).

Regards,
  Jochen



More information about the SNMP4J mailing list