C# Class SnmpSharpNet.PrivacyProtocol

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: int myPrivacyProtocol = PrivacyProtocol.AES128; IPrivacyProtocol privacyImplementation = PrivacyProtocol.GetInstance(myPrivacyProtocol); byte[] result = privacyImplementation.Encrypt(....);
Mostra file Open project: griffina/SnmpSharpNet Class Usage Examples

Public Methods

Method Description
GetInstance ( PrivacyProtocols privProtocol ) : IPrivacyProtocol

Based on the supplied privacyProtocol, return instance of the privacy protocol implementation class.

Private Methods

Method Description
PrivacyProtocol ( )

Private constructor. This class cannot be instantiated.

Method Details

GetInstance() public static method

Based on the supplied privacyProtocol, return instance of the privacy protocol implementation class.
public static GetInstance ( PrivacyProtocols privProtocol ) : IPrivacyProtocol
privProtocol PrivacyProtocols Privacy protocol code. Available protocols are , /// , , and /// .
return IPrivacyProtocol