Convert
ScopedPdu into a BER encoded byte array. Resulting byte array is appended
to the argument specified
MutableByte class.
Privacy operations are not performed by this method. Value encoded and returned by this method is
suitable for sending in NoAuthNoPriv or AuthNoPriv security configurations. If privacy is required,
caller will have to perform encryption and decryption operations after BER encoding is performed.
In privacy protected SNMP version 3 packets, ScopedPdu is 1) encrypted using configured encryption
method, 2) added to a
OctetString field, and 3) appended to the data buffer.
Because privacy operation is intrusive, it is recommended that BER encoding of the ScopedPdu packet
is stored in a temporary
MutableByte class, where it can be privacy protected and
added to the
OctetString class for final encoding into the target SNMP v3 packet.
Namespace:
SnmpSharpNet
Assembly:
SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.0)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overrides Sub encode ( _
buffer As MutableByte _
) |
| Visual C++ |
|---|
public:
virtual void encode(
MutableByte^ buffer
) override |
See Also