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
usernamestringThe username.
Exceptions
- ArgumentNullException
When the username is null.
- ArgumentException
When
usernameis 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
usernamestringThe username.
authenticationKeystringThe Authentication key.
authenticationAlgorithmSnmpV3AuthenticationAlgorithmThe Authentication Algorithm.
Exceptions
- ArgumentNullException
When username, authenticationKey is null.
- IncorrectDataException
When None or DefinedInCredentialsLibrary is selected as authentication algorithm.
- ArgumentException
When
usernameis 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
usernamestringThe username.
authenticationKeystringThe authentication key.
authenticationProtocolSnmpV3AuthenticationAlgorithmThe authentication algorithm.
encryptionKeystringThe encryptionKey.
encryptionAlgorithmSnmpV3EncryptionAlgorithmThe 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
usernameis 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()