Package org.netxms.client.snmp
Class SnmpUsmCredential
java.lang.Object
org.netxms.client.snmp.SnmpUsmCredential
- Author:
- Victor
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SnmpUsmCredential(NXCPMessage msg, long baseId) Create credentials object from data in NXCP message -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP message with object's dataintgetName()intintGet zone id of credentialinthashCode()voidsetAuthMethod(int authMethod) voidsetAuthPassword(String authPassword) voidsetComment(String comment) voidvoidsetPrivMethod(int privMethod) voidsetPrivPassword(String privPassword) voidsetZoneId(int zoneId) Set zone if of credential
-
Constructor Details
-
SnmpUsmCredential
Create credentials object from data in NXCP message- Parameters:
msg- NXCP messagebaseId- Base variable ID
-
SnmpUsmCredential
public SnmpUsmCredential()Default constructor.
-
-
Method Details
-
fillMessage
Fill NXCP message with object's data- Parameters:
msg- NXCP messagebaseId- Base variable ID
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getAuthMethod
public int getAuthMethod()- Returns:
- the authMethod
-
setAuthMethod
public void setAuthMethod(int authMethod) - Parameters:
authMethod- the authMethod to set
-
getPrivMethod
public int getPrivMethod()- Returns:
- the privMethod
-
setPrivMethod
public void setPrivMethod(int privMethod) - Parameters:
privMethod- the privMethod to set
-
getAuthPassword
- Returns:
- the authPassword
-
setAuthPassword
- Parameters:
authPassword- the authPassword to set
-
getPrivPassword
- Returns:
- the privPassword
-
setPrivPassword
- Parameters:
privPassword- the privPassword to set
-
hashCode
public int hashCode() -
equals
-
getZoneId
public int getZoneId()Get zone id of credential- Returns:
- zone id
-
setZoneId
public void setZoneId(int zoneId) Set zone if of credential- Parameters:
zoneId- to set
-
getComment
- Returns:
- the comment
-
setComment
- Parameters:
comment- the comment to set
-