Class SnmpUsmCredential

java.lang.Object
org.netxms.client.snmp.SnmpUsmCredential

public class SnmpUsmCredential extends Object
Author:
Victor
  • Constructor Details

    • SnmpUsmCredential

      public SnmpUsmCredential(NXCPMessage msg, long baseId)
      Create credentials object from data in NXCP message
      Parameters:
      msg - NXCP message
      baseId - Base variable ID
    • SnmpUsmCredential

      public SnmpUsmCredential()
      Default constructor.
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg, long baseId)
      Fill NXCP message with object's data
      Parameters:
      msg - NXCP message
      baseId - 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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