Module org.snmp4j

Class SNMPv3SecurityModel

java.lang.Object
org.snmp4j.security.SNMPv3SecurityModel
All Implemented Interfaces:
SecurityModel
Direct Known Subclasses:
TSM, USM

public abstract class SNMPv3SecurityModel extends Object implements SecurityModel
The abstract class SNMPv3SecurityModel implements common methods and fields for security models for the SNMPv3 message processing model.
Since:
2.0
Version:
2.0
Author:
Frank Fock
  • Field Details

  • Constructor Details

    • SNMPv3SecurityModel

      public SNMPv3SecurityModel()
  • Method Details

    • getLocalEngineID

      public OctetString getLocalEngineID()
      Returns the local engine ID.
      Returns:
      the local engine ID.
      Since:
      1.2
    • buildWholeMessage

      protected static byte[] buildWholeMessage(Integer32 snmpVersion, byte[] scopedPdu, byte[] globalData, SecurityParameters securityParameters) throws IOException
      Throws:
      IOException
    • buildMessageBuffer

      protected static byte[] buildMessageBuffer(BERInputStream scopedPDU) throws IOException
      Throws:
      IOException
    • getCounterSupport

      public CounterSupport getCounterSupport()
      Gets the counter support instance that can be used to register for counter incrementation events.
      Returns:
      a CounterSupport instance that is used to fire CounterEvent.
    • setCounterSupport

      public void setCounterSupport(CounterSupport counterSupport)
      Sets the counter support instance. By default, the singleton instance provided by the CounterSupport instance is used.
      Parameters:
      counterSupport - a CounterSupport subclass instance.