Interface IPrivacyProvider
- Namespace
- Lextm.SharpSnmpLib.Security
- Assembly
- SharpSnmpLib.dll
Privacy provider interface.
public interface IPrivacyProvider
- Extension Methods
Properties
AuthenticationProvider
Corresponding IAuthenticationProvider.
IAuthenticationProvider AuthenticationProvider { get; }
Property Value
EngineIds
Engine IDs.
ICollection<OctetString>? EngineIds { get; }
Property Value
Remarks
This is an optional field, and only used by TRAP v2 authentication.
Salt
Gets the salt.
OctetString Salt { get; }
Property Value
- OctetString
The salt.
Methods
Decrypt(ISnmpData, SecurityParameters)
Decrypts the specified data.
ISnmpData Decrypt(ISnmpData data, SecurityParameters parameters)
Parameters
data
ISnmpDataThe data.
parameters
SecurityParametersThe parameters.
Returns
Encrypt(ISnmpData, SecurityParameters)
Encrypts the specified scope.
ISnmpData Encrypt(ISnmpData data, SecurityParameters parameters)
Parameters
data
ISnmpDataThe scope data.
parameters
SecurityParametersThe parameters.
Returns
PasswordToKey(byte[], byte[])
Passwords to key.
byte[] PasswordToKey(byte[] secret, byte[] engineId)
Parameters
Returns
- byte[]