Verifies correct MD5 authentication of the frame. Prior to calling this method, you have to extract authentication parameters from the wholeMessage and reset authenticationParameters field in the USM information block to 12 0x00 values.

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.7.0.0 (0.7.0.0)

Syntax

C#
public bool authenticateIncomingMsg(
	byte[] userPassword,
	byte[] engineId,
	byte[] authenticationParameters,
	MutableByte wholeMessage
)
Visual Basic (Declaration)
Public Function authenticateIncomingMsg ( _
	userPassword As Byte(), _
	engineId As Byte(), _
	authenticationParameters As Byte(), _
	wholeMessage As MutableByte _
) As Boolean
Visual C++
public:
virtual bool authenticateIncomingMsg(
	array<unsigned char>^ userPassword, 
	array<unsigned char>^ engineId, 
	array<unsigned char>^ authenticationParameters, 
	MutableByte^ wholeMessage
) sealed

Parameters

userPassword
Type: array< System..::.Byte >[]()[]
User password
engineId
Type: array< System..::.Byte >[]()[]
Authoritative engine id
authenticationParameters
Type: array< System..::.Byte >[]()[]
Extracted USM authentication parameters
wholeMessage
Type: SnmpSharpNet..::.MutableByte
Whole message with authentication parameters zeroed (0x00) out

Return Value

True if message authentication has passed the check, otherwise false

Implements

IAuthenticationDigest..::.authenticateIncomingMsg(array<Byte>[]()[], array<Byte>[]()[], array<Byte>[]()[], MutableByte)

See Also