Security Parameters

 

Security Level

 

The applications need to set the corresponding security level for the user and then make the SNMPv3 request.

 

If the security level of the user is "NoAuthNoPriv", no additional parameters are required.

 

If the security level of the user is "AuthNoPriv", the following authentication parameters are be set.

If the user security level is "AuthPriv", the privacy password needs to be set in addition to the above parameters.

note.jpg

Note: These security-related parameters are present only in the USM. The default security model used by WebNMS SNMP API is USM.

 

API Name

Class/Component Name

API Methodsapi.jpg

Remarks

High Level

SnmpTarget
SnmpRequestServer
SnmpPoller
SnmpTable

setAuthProtocol(int)

setAuthPassword(String)

setPrivPassword(String)

These methods set the authentication and privacy parameters.

Low Level

SnmpSession

SnmpPDU

setAuthProtocol(int)

setAuthPassword(byte[])

setPrivPassword(byte[])

The fields can also be passed directly to init_v3_params() method available in USMUtils class.

RMI

SnmpTarget
SnmpRequestServer

setAuthProtocol(int)

setAuthPassword(String)

setPrivPassword(String)

These methods set the authentication and privacy parameters.

CORBA

SnmpTarget
SnmpRequestServer

setAuthProtocol(int)

setAuthPassword(String)

setPrivPassword(String)

- same as above -

EJB

SnmpTargetEJB

setAuthProtocol(int)

setAuthPassword(String)

setPrivPassword(String)

- same as above -

 

note.jpg

Note: The privacy support is provided by packages, such as Cryptix or JCE (Java Cryptography Extensions) need to be configured separately. Please read the Installation and Setup section for setting up the privacy support.

 

User Name

 

SNMPv3 entities maintain a set of users defined for it with a particular security level. The entity can configure users based on the three security levels. The entity can restrict access to the managed objects based on the users' security level. Any SNMPv3 entity should be communicated by a manager only on behalf of any one of the users present in the SNMPv3 entity. The octet string "username" represents one of the principals (users) defined in the SNMPv3 entity. The user name can be set by the following methods.

 

API Name Class/Component Name

API Methodsapi.jpg

High Level

SnmpTarget
SnmpRequestServer
SnmpPoller
SnmpTable

setPrincipal()

Low Level

SnmpSession

SnmpPDU

setUserName()

RMI

SnmpTarget
SnmpRequestServer

setPrincipal()

CORBA

SnmpTarget
SnmpRequestServer

setPrincipal()

EJB

SnmpTargetEJB

setPrincipal()



Copyright © 2012, ZOHO Corp. All Rights Reserved.