java.lang.Object
org.snmp4j.security.SNMPv3SecurityModel
- All Implemented Interfaces:
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 Summary
FieldsFields inherited from interface org.snmp4j.security.SecurityModel
SECURITY_MODEL_ANY, SECURITY_MODEL_SNMPv1, SECURITY_MODEL_SNMPv2c, SECURITY_MODEL_TSM, SECURITY_MODEL_USM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]buildMessageBuffer(BERInputStream scopedPDU) protected static byte[]buildWholeMessage(Integer32 snmpVersion, byte[] scopedPdu, byte[] globalData, SecurityParameters securityParameters) Gets the counter support instance that can be used to register for counter incrementation events.Returns the local engine ID.voidsetCounterSupport(CounterSupport counterSupport) Sets the counter support instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.snmp4j.security.SecurityModel
generateRequestMessage, generateResponseMessage, getID, hasAuthoritativeEngineID, newSecurityParametersInstance, newSecurityStateReference, processIncomingMsg, supportsEngineIdDiscovery
-
Field Details
-
localEngineID
-
counterSupport
-
-
Constructor Details
-
SNMPv3SecurityModel
public SNMPv3SecurityModel()
-
-
Method Details
-
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
- Throws:
IOException
-
getCounterSupport
Gets the counter support instance that can be used to register for counter incrementation events.- Returns:
- a
CounterSupportinstance that is used to fireCounterEvent.
-
setCounterSupport
Sets the counter support instance. By default, the singleton instance provided by theCounterSupportinstance is used.- Parameters:
counterSupport- aCounterSupportsubclass instance.
-