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
VersionCodeThe version.
header
ISegmentThe header.
parameters
SecurityParametersThe parameters.
data
ISnmpDataThe scope data.
privacy
IPrivacyProviderThe privacy provider.
length
byte[]The length bytes.
Returns
ComputeHash(byte[], OctetString)
Computes the hash.
public OctetString ComputeHash(byte[] buffer, OctetString engineId)
Parameters
buffer
byte[]engineId
OctetString
Returns
PasswordToKey(byte[], byte[])
Converts password to key.
public byte[] PasswordToKey(byte[] password, byte[] engineId)
Parameters
Returns
- byte[]
ToString()
Returns a string that represents this instance.
public override string ToString()