Table of Contents

Class SecurityParameters

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Description of SecurityParameters.

public sealed class SecurityParameters : ISegment
Inheritance
SecurityParameters
Implements
Inherited Members

Constructors

SecurityParameters(OctetString)

Initializes a new instance of the SecurityParameters class.

public SecurityParameters(OctetString parameters)

Parameters

parameters OctetString

The OctetString that contains parameters.

SecurityParameters(OctetString?, Integer32?, Integer32?, OctetString, OctetString?, OctetString?)

Initializes a new instance of the SecurityParameters class.

public SecurityParameters(OctetString? engineId, Integer32? engineBoots, Integer32? engineTime, OctetString userName, OctetString? authenticationParameters, OctetString? privacyParameters)

Parameters

engineId OctetString

The engine ID.

engineBoots Integer32

The engine boots.

engineTime Integer32

The engine time.

userName OctetString

The user name.

authenticationParameters OctetString

The authentication parameters.

privacyParameters OctetString

The privacy parameters.

Remarks

Only userName cannot be null.

Properties

AuthenticationParameters

Gets the authentication parameters.

public OctetString? AuthenticationParameters { get; set; }

Property Value

OctetString

The authentication parameters.

EngineBoots

Gets the boot count.

public Integer32? EngineBoots { get; }

Property Value

Integer32

The boot count.

EngineId

Gets the engine ID.

public OctetString? EngineId { get; }

Property Value

OctetString

The engine ID.

EngineTime

Gets the engine time.

public Integer32? EngineTime { get; }

Property Value

Integer32

The engine time.

IsInvalid

Gets a value that indicates whether the hashes are invalid.

public bool IsInvalid { get; set; }

Property Value

bool

PrivacyParameters

Gets the privacy parameters.

public OctetString? PrivacyParameters { get; }

Property Value

OctetString

The privacy parameters.

UserName

Gets the user name.

public OctetString UserName { get; }

Property Value

OctetString

The user name.

Methods

Create(OctetString)

Creates an instance of SecurityParameters.

public static SecurityParameters Create(OctetString userName)

Parameters

userName OctetString

User name.

Returns

SecurityParameters

GetData(VersionCode)

Gets the data.

public ISnmpData GetData(VersionCode version)

Parameters

version VersionCode

The version.

Returns

ISnmpData

ToSequence()

Converts to Sequence.

public Sequence ToSequence()

Returns

Sequence

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.