Table of Contents

Class DefaultAuthenticationProvider

Namespace
Lextm.SharpSnmpLib.Security
Assembly
SharpSnmpLib.dll

Default authentication provider.

public sealed class DefaultAuthenticationProvider : IAuthenticationProvider
Inheritance
DefaultAuthenticationProvider
Implements
Inherited Members

Properties

CleanDigest

Gets the clean digest.

public OctetString CleanDigest { get; }

Property Value

OctetString

The clean digest.

DigestLength

Gets the length of the digest.

public int DigestLength { get; }

Property Value

int

The length of the digest.

Instance

Gets the instance.

public static IAuthenticationProvider Instance { get; }

Property Value

IAuthenticationProvider

The instance.

Methods

ComputeHash(VersionCode, ISegment, SecurityParameters, ISnmpData, IPrivacyProvider, byte[]?)

Computes the hash.

public OctetString ComputeHash(VersionCode version, ISegment header, SecurityParameters parameters, ISnmpData data, IPrivacyProvider privacy, byte[]? length)

Parameters

version VersionCode

The version.

header ISegment

The header.

parameters SecurityParameters

The parameters.

data ISnmpData

The scope data.

privacy IPrivacyProvider

The privacy provider.

length byte[]

The length bytes.

Returns

OctetString

ComputeHash(byte[], OctetString)

Computes the hash.

public OctetString ComputeHash(byte[] buffer, OctetString engineId)

Parameters

buffer byte[]
engineId OctetString

Returns

OctetString

PasswordToKey(byte[], byte[])

Converts password to key.

public byte[] PasswordToKey(byte[] password, byte[] engineId)

Parameters

password byte[]
engineId byte[]

Returns

byte[]

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.