Convert user password to acceptable authentication key.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public byte[] PasswordToKey(
	byte[] userPassword,
	byte[] engineID
)
Public Function PasswordToKey ( _
	userPassword As Byte(), _
	engineID As Byte() _
) As Byte()
public:
virtual array<unsigned char>^ PasswordToKey(
	array<unsigned char>^ userPassword, 
	array<unsigned char>^ engineID
) sealed

Parameters

userPassword
array< Byte >[]()[]
Authentication password
engineID
array< Byte >[]()[]
Authoritative engine id

Return Value

Localized authentication key

Implements

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

Exceptions

ExceptionCondition
SnmpAuthenticationExceptionThrown when key length is less then 8 bytes

See Also