Module org.snmp4j

Class SNMPv3SecurityModel

  • All Implemented Interfaces:
    SecurityModel
    Direct Known Subclasses:
    TSM, USM

    public abstract class SNMPv3SecurityModel
    extends java.lang.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 Detail

    • Constructor Detail

      • SNMPv3SecurityModel

        public SNMPv3SecurityModel()
    • Method Detail

      • 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 java.io.IOException
        Throws:
        java.io.IOException
      • buildMessageBuffer

        protected static byte[] buildMessageBuffer​(BERInputStream scopedPDU)
                                            throws java.io.IOException
        Throws:
        java.io.IOException