Constructor SnmpV3SecurityConfig
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
SnmpV3SecurityConfig(string)
Initializes a new instance using No Authentication and No Privacy.
public SnmpV3SecurityConfig(string username)
Parameters
username
stringThe username.
Exceptions
- ArgumentNullException
When the username is null.
- ArgumentException
When
username
is empty or only consists of whitespaces.
SnmpV3SecurityConfig(string, string, SnmpV3AuthenticationAlgorithm)
Initializes a new instance using Authentication No Privacy.
public SnmpV3SecurityConfig(string username, string authenticationKey, SnmpV3AuthenticationAlgorithm authenticationAlgorithm)
Parameters
username
stringThe username.
authenticationKey
stringThe Authentication key.
authenticationAlgorithm
SnmpV3AuthenticationAlgorithmThe Authentication Algorithm.
Exceptions
- ArgumentNullException
When username, authenticationKey is null.
- IncorrectDataException
When None or DefinedInCredentialsLibrary is selected as authentication algorithm.
- ArgumentException
When
username
is empty or only consists of whitespaces.
SnmpV3SecurityConfig(string, string, SnmpV3AuthenticationAlgorithm, string, SnmpV3EncryptionAlgorithm)
Initializes a new instance using Authentication and Privacy.
public SnmpV3SecurityConfig(string username, string authenticationKey, SnmpV3AuthenticationAlgorithm authenticationProtocol, string encryptionKey, SnmpV3EncryptionAlgorithm encryptionAlgorithm)
Parameters
username
stringThe username.
authenticationKey
stringThe authentication key.
authenticationProtocol
SnmpV3AuthenticationAlgorithmThe authentication algorithm.
encryptionKey
stringThe encryptionKey.
encryptionAlgorithm
SnmpV3EncryptionAlgorithmThe encryption algorithm.
Exceptions
- ArgumentNullException
When username, authenticationKey or encryptionKey is null.
- IncorrectDataException
When None or DefinedInCredentialsLibrary is selected as authentication algorithm or encryption algorithm.
- ArgumentException
When
username
is empty or only consists of whitespaces.
SnmpV3SecurityConfig()
Initializes a new instance of the SnmpV3SecurityConfig class.
[Obsolete("Use the other constructors or static factory methods as these provide all valid configuration options.")]
public SnmpV3SecurityConfig()