HOME

com.ireasoning.protocol.snmp
Class SnmpV3TrapSink

java.lang.Object
  extended bycom.ireasoning.protocol.snmp.TrapSink
      extended bycom.ireasoning.protocol.snmp.SnmpV3TrapSink
All Implemented Interfaces:
Serializable

public class SnmpV3TrapSink
extends TrapSink

This class represents an SNMPV3 trap sink properties

See Also:
Serialized Form

Constructor Summary
SnmpV3TrapSink()
          Constructor
SnmpV3TrapSink(Map attributes)
          Construct a TrapSink object based on the name/value pair contained in passed attributes object
SnmpV3TrapSink(String hostName, int port, String userName, String auth, String authPassword, String privPassword, String engineID, boolean isInform)
          Constructor
 
Method Summary
 String getAuth()
          Returns the authentication algorithm of SNMPv3 trap receiver, either MD5 or SHA.
 String getAuthPassword()
          Returns the authentication password of SNMPv3 trap receiver
 String getContextName()
           
 String getEngineID()
          Returns the engineID of SNMPv3 trap receiver
 int getPriv()
          Returns privacy protocol
 String getPrivPassword()
          Returns the privacy password of SNMPv3 trap receiver
 String getUserName()
          Returns the user name of SNMPv3 trap receiver
 int getVersion()
          Returns trap receiver's version number
 void setAuth(String auth)
          Sets the authentication algorithm of SNMPv3 trap receiver
 void setAuthPassword(String authPassword)
          Sets the authentication password of SNMPv3 trap receiver
 void setContextName(String context)
           
 void setEngineID(String engineID)
          Sets the engineID of SNMPv3 trap receiver
 void setPriv(int priv)
          Set privacy protocol
 void setPrivPassword(String privPassword)
          Sets the privacy password of SNMPv3 trap receiver
 void setUserName(String userName)
          Sets the user name of SNMPv3 trap receiver
 void setVersion(int version)
          Sets trap receiver's version number.
 Map toMap()
          Returns a map object which contains name/value pair representing data of this object
 
Methods inherited from class com.ireasoning.protocol.snmp.TrapSink
getCommunity, getHostName, getPort, getProperty, isEnabled, isInform, setCommunity, setEnabled, setHostName, setInform, setPort, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpV3TrapSink

public SnmpV3TrapSink()
Constructor


SnmpV3TrapSink

public SnmpV3TrapSink(String hostName,
                      int port,
                      String userName,
                      String auth,
                      String authPassword,
                      String privPassword,
                      String engineID,
                      boolean isInform)
Constructor

Parameters:
auth - authentication algorithm, either "md5" or "sha"

SnmpV3TrapSink

public SnmpV3TrapSink(Map attributes)
Construct a TrapSink object based on the name/value pair contained in passed attributes object

Method Detail

getVersion

public int getVersion()
Returns trap receiver's version number

Overrides:
getVersion in class TrapSink

setVersion

public void setVersion(int version)
Sets trap receiver's version number.

Overrides:
setVersion in class TrapSink

getEngineID

public String getEngineID()
Returns the engineID of SNMPv3 trap receiver


setEngineID

public void setEngineID(String engineID)
Sets the engineID of SNMPv3 trap receiver


getPrivPassword

public String getPrivPassword()
Returns the privacy password of SNMPv3 trap receiver


setPrivPassword

public void setPrivPassword(String privPassword)
Sets the privacy password of SNMPv3 trap receiver


getAuthPassword

public String getAuthPassword()
Returns the authentication password of SNMPv3 trap receiver


setAuthPassword

public void setAuthPassword(String authPassword)
Sets the authentication password of SNMPv3 trap receiver


getAuth

public String getAuth()
Returns the authentication algorithm of SNMPv3 trap receiver, either MD5 or SHA.


setAuth

public void setAuth(String auth)
Sets the authentication algorithm of SNMPv3 trap receiver

Parameters:
auth - algorithm, either "md5" or "sha"

setPriv

public void setPriv(int priv)
Set privacy protocol

Parameters:
priv - privacy protocol. One of {SnmpConst.DES, SnmpConst.AES, SnmpConst.AES192, SnmpConst.AES256}. Default value is SnmpConst.DES

getPriv

public int getPriv()
Returns privacy protocol


getUserName

public String getUserName()
Returns the user name of SNMPv3 trap receiver


setUserName

public void setUserName(String userName)
Sets the user name of SNMPv3 trap receiver


getContextName

public String getContextName()

setContextName

public void setContextName(String context)

toMap

public Map toMap()
Returns a map object which contains name/value pair representing data of this object

Overrides:
toMap in class TrapSink

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.