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
OctetStringThe 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
OctetStringThe engine ID.
engineBoots
Integer32The engine boots.
engineTime
Integer32The engine time.
userName
OctetStringThe user name.
authenticationParameters
OctetStringThe authentication parameters.
privacyParameters
OctetStringThe 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
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
OctetStringUser name.
Returns
GetData(VersionCode)
Gets the data.
public ISnmpData GetData(VersionCode version)
Parameters
version
VersionCodeThe version.
Returns
ToSequence()
Converts to Sequence.
public Sequence ToSequence()
Returns
ToString()
Returns a string that represents this instance.
public override string ToString()