Package org.netxms.client.snmp
Class SnmpUsmCredential
java.lang.Object
org.netxms.client.snmp.SnmpUsmCredential
- Author:
- Victor
-
Constructor Summary
ConstructorDescriptionDefault constructor.SnmpUsmCredential
(NXCPMessage msg, long baseId) Create credentials object from data in NXCP message -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
fillMessage
(NXCPMessage msg, long baseId) Fill NXCP message with object's dataint
getName()
int
int
Get zone id of credentialint
hashCode()
void
setAuthMethod
(int authMethod) void
setAuthPassword
(String authPassword) void
setComment
(String comment) void
void
setPrivMethod
(int privMethod) void
setPrivPassword
(String privPassword) void
setZoneId
(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
-