PowerSNMP for .NET
GenerateLocalAuthenticationKey(String) Method




The authentication password to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.
Generates a local authentication key using the specified authentication password and the current engine ID.
Syntax
Public Overloads Function GenerateLocalAuthenticationKey( _
   ByVal authenticationPassword As String _
) As Byte()
Dim instance As User
Dim authenticationPassword As String
Dim value() As Byte
 
value = instance.GenerateLocalAuthenticationKey(authenticationPassword)
public byte[] GenerateLocalAuthenticationKey( 
   string authenticationPassword
)
public: byte[]* GenerateLocalAuthenticationKey( 
   string* authenticationPassword
) 
public:
array<byte>^ GenerateLocalAuthenticationKey( 
   String^ authenticationPassword
) 

Parameters

authenticationPassword
The authentication password to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.

Return Value

A byte array containing the generated local authentication key.
Remarks
The generated key is derived from the provided password and the current EngineId and KeyExpansionAlgorithm. The generated key will automatically be added to the LocalAuthenticationKeys dictionary.
See Also

Reference

User Class
User Members
Overload List


PowerSNMP for .NET Documentation Version 8.1
© 2026 Dart Communications. All Rights Reserved.
Send comments on this topic