Convert user password to acceptable authentication key.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
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 keyImplements
IAuthenticationDigest..::.PasswordToKey(array<Byte>[]()[], array<Byte>[]()[])
Exceptions
| Exception | Condition |
|---|---|
| SnmpAuthenticationException | Thrown when key length is less then 8 bytes |