Package org.netxms.client.snmp
Class SnmpUsmCredential
- java.lang.Object
-
- org.netxms.client.snmp.SnmpUsmCredential
-
public class SnmpUsmCredential extends Object
- Author:
- Victor
-
-
Constructor Summary
Constructors Constructor Description SnmpUsmCredential()Default constructor.SnmpUsmCredential(org.netxms.base.NXCPMessage msg, long baseId)Create credentials object from data in NXCP message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidfillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with object's dataintgetAuthMethod()StringgetAuthPassword()StringgetComment()StringgetName()intgetPrivMethod()StringgetPrivPassword()intgetZoneId()Get zone id of credentialinthashCode()voidsetAuthMethod(int authMethod)voidsetAuthPassword(String authPassword)voidsetComment(String comment)voidsetName(String name)voidsetPrivMethod(int privMethod)voidsetPrivPassword(String privPassword)voidsetZoneId(int zoneId)Set zone if of credential
-
-
-
Method Detail
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with object's data- Parameters:
msg- NXCP messagebaseId- Base variable ID
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- 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
public String getAuthPassword()
- Returns:
- the authPassword
-
setAuthPassword
public void setAuthPassword(String authPassword)
- Parameters:
authPassword- the authPassword to set
-
getPrivPassword
public String getPrivPassword()
- Returns:
- the privPassword
-
setPrivPassword
public void setPrivPassword(String privPassword)
- Parameters:
privPassword- the privPassword to set
-
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
public String getComment()
- Returns:
- the comment
-
setComment
public void setComment(String comment)
- Parameters:
comment- the comment to set
-
-