Table of Contents

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

IAuthenticationProvider

EngineIds

Engine IDs.

ICollection<OctetString>? EngineIds { get; }

Property Value

ICollection<OctetString>

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 ISnmpData

The data.

parameters SecurityParameters

The parameters.

Returns

ISnmpData

Encrypt(ISnmpData, SecurityParameters)

Encrypts the specified scope.

ISnmpData Encrypt(ISnmpData data, SecurityParameters parameters)

Parameters

data ISnmpData

The scope data.

parameters SecurityParameters

The parameters.

Returns

ISnmpData

PasswordToKey(byte[], byte[])

Passwords to key.

byte[] PasswordToKey(byte[] secret, byte[] engineId)

Parameters

secret byte[]

The secret.

engineId byte[]

The engine identifier.

Returns

byte[]