Verifies correct SHA-1 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.5.0.0 (0.5.0.0)

Syntax

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

Parameters

userPassword
array< Byte >[]()[]
User password
engineId
array< Byte >[]()[]
Authoritative engine id
authenticationParameters
array< Byte >[]()[]
Extracted USM authentication parameters
wholeMessage
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