Convert user password to acceptable authentication key.
Namespace:
SnmpSharpNet
Assembly:
SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.4.3.0 (0.4.3.0)
Syntax
| C# |
|---|
public byte[] PasswordToKey(
byte[] userPassword,
byte[] engineID
) |
| Visual Basic (Declaration) |
|---|
Public Function PasswordToKey ( _
userPassword As Byte(), _
engineID As Byte() _
) As Byte() |
| Visual C++ |
|---|
public:
virtual array<unsigned char>^ PasswordToKey(
array<unsigned char>^ userPassword,
array<unsigned char>^ engineID
) sealed |
Parameters
- userPassword
- Type: array<
System..::.Byte
>[]()[]
Authentication password
- engineID
- Type: array<
System..::.Byte
>[]()[]
Authoritative engine id
Return Value
Localized authentication key
Implements
IAuthenticationDigest..::.PasswordToKey(array<Byte>[]()[], array<Byte>[]()[])Remarks
Exceptions
| Exception | Condition |
|---|
| SnmpAuthenticationException | Thrown when key length is less then 8 bytes |
See Also