Convert user password to acceptable authentication key.
Namespace: SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.0.0 (0.9.0)
Syntax
| C# |
|---|
public byte[] PasswordToKey( byte[] userPassword, byte[] engineID ) |
| Visual Basic |
|---|
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>[]()[][]
User password
- engineID
- Type: array<System..::..Byte>[]()[][]
Authoritative engine id
Return Value
Localized authentication keyImplements
IAuthenticationDigest..::..PasswordToKey(array<Byte>[]()[][], array<Byte>[]()[][])
Exceptions
| Exception | Condition |
|---|---|
| SnmpSharpNet..::..SnmpAuthenticationException | Thrown when key length is less then 8 bytes |