The SnmpV3Packet type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| SnmpV3Packet()()()() |
Standard constructor.
| |
| SnmpV3Packet(ScopedPdu) |
Constructor.
| |
| SnmpV3Packet(SecureAgentParameters) |
Constructor.
| |
| SnmpV3Packet(SecureAgentParameters, ScopedPdu) |
Constructor
|
Methods
| Name | Description | |
|---|---|---|
| authNoPriv |
Set class security to enabled authentication and no privacy. To perform authentication,
authentication password needs to be supplied and authentication protocol to be used
to perform authentication.
This method does not initialize the packet user name. Use SNMPV3Packet.SecurityName
method to set the security name (also called user name) for this request.
| |
| authPriv |
Set packet security to authentication enabled and privacy protection enabled (SNMP v3 mode authPriv)
| |
| BuildInformResponse()()()() |
Build SNMP RESPONSE packet for the received INFORM packet.
| |
| BuildInformResponse(SnmpV3Packet) |
Build SNMP RESPONSE packet for the INFORM packet class.
| |
| decode(array<Byte>[]()[][], Int32) |
Decode SNMP version 3 packet. This method will perform authentication check and decode privacy protected ScopedPdu. This method will
not check for the timeliness of the packet, correct engine boot value or engine id because it does not have a reference to the engine time prior to this call.
(Overrides SnmpPacket..::..decode(array<Byte>[]()[][], Int32).) | |
| decode(array<Byte>[]()[][], Int32, array<Byte>[]()[][], array<Byte>[]()[][]) |
Decode SNMP version 3 packet. This method will perform authentication check and decode privacy protected ScopedPdu. This method will
not check for the timeliness of the packet, correct engine boot value or engine id because it does not have a reference to the engine time prior to this call.
| |
| DiscoveryRequest |
Build an SNMP version 3 packet suitable for use in discovery process.
| |
| DiscoveryResponse |
Build SNMP discovery response packet.
| |
| encode()()()() |
Encode SNMP version 3 packet
(Overrides SnmpPacket..::..encode()()()().) | |
| encode(MutableByte) |
Wrap BER encoded SNMP information contained in the parameter MutableByte class.
Information in the parameter is prepended by the SNMP version field and wrapped in a sequence header.
Derived classes call this method to finalize SNMP packet encoding.
(Inherited from SnmpPacket.) | |
| encode(array<Byte>[]()[][], array<Byte>[]()[][]) |
Encode SNMP version 3 packet
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GenerateAuthenticationKey |
Generate authentication key from authentication password and engine id
| |
| GeneratePrivacyKey |
Generate privacy key from authentication password and engine id
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| GetUSM |
"Look-ahead" decode of SNMP packet header including USM information
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| NoAuthNoPriv()()()() |
Set class security to no authentication and no privacy. User name is set to "initial" (suitable for
SNMP version 3 discovery process). Change username before using if discovery is not being performed.
| |
| NoAuthNoPriv(array<Byte>[]()[][]) |
Set class security to no authentication and no privacy with the specific user name.
| |
| SetEngineId |
Set authoritative engine id
| |
| SetEngineTime |
Set engine time and boots values
| |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| _protocolVersion |
SNMP protocol version
(Inherited from SnmpPacket.) | |
| _securityModel |
Security model code. Only supported security model is UserSecurityModel (integer value 3)
|
Properties
| Name | Description | |
|---|---|---|
| IsDiscoveryPacket |
Packet is a discovery request
| |
| IsNotification |
Packet is a notification
(Inherited from SnmpPacket.) | |
| IsReport |
Packet is a report
(Inherited from SnmpPacket.) | |
| IsReportable |
Get or set SNMP version 3 packet Reportable flag in the message flags section. By default this value is set to true.
| |
| IsRequest |
Packet is a request
(Inherited from SnmpPacket.) | |
| IsResponse |
Packet is a response
(Inherited from SnmpPacket.) | |
| MaxMessageSize |
Get maximum message size to be sent to the agent in the request.
| |
| MessageId |
Get SNMP version 3 message id object.
| |
| MsgFlags |
Message flags interface. Allows you to directly set or clear SNMP version 3 header flags field.
Available flags are MsgFlags.Authentication, MsgFlags.Privacy and MsgFlags.Reportable.
Please be careful how you use this property. After setting authentication or privacy parameters to true,
you will need to update UserSecurityModel authentication and privacy types to the correct
values otherwise encoding/decoding will not work.
| |
| Pdu |
Override base class implementation. Returns class ScopedPdu cast as Pdu
(Overrides SnmpPacket..::..Pdu.) | |
| ScopedPdu |
Access packet ScopedPdu class.
| |
| USM |
Get UserSecurityModel class reference.
| |
| Version |
SNMP Protocol version
(Inherited from SnmpPacket.) |