Privacy protocol helper class. 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#
Namespace:
SnmpSharpNetint myPrivacyProtocol = PrivacyProtocol.AES128; IPrivacyProtocol privacyImplementation = PrivacyProtocol.GetInstance(myPrivacyProtocol); byte[] result = privacyImplementation.Encrypt(....);
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
public sealed class PrivacyProtocol
Public NotInheritable Class PrivacyProtocol
public ref class PrivacyProtocol sealed
Members
| All Members | Methods |
| Member | Description | |
|---|---|---|
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetInstance(PrivacyProtocols) |
Based on the supplied privacyProtocol, return instance of the privacy protocol implementation class.
| |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| ToString()()() | (Inherited from Object.) |