Privacy protocol helper class.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.6.0.0 (0.6.0.0)
Syntax
| C# |
|---|
public sealed class PrivacyProtocol |
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class PrivacyProtocol |
| Visual C++ |
|---|
public ref class PrivacyProtocol sealed |
Remarks
This class is used to define privacy protocol encryption type in other
classes using integer constants representing each protocol supported, and allows for easy instantiation
of privacy protocol when used for encryption or decryption of data in a encryption method independent way.
Example of how to use this class:
CopyC#
int myPrivacyProtocol = PrivacyProtocol.AES128; IPrivacyProtocol privacyImplementation = PrivacyProtocol.GetInstance(myPrivacyProtocol); byte[] result = privacyImplementation.Encrypt(....);