C# Класс 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(....);
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetInstance ( PrivacyProtocols privProtocol ) : IPrivacyProtocol

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

Приватные методы

Метод Описание
PrivacyProtocol ( )

Private constructor. This class cannot be instantiated.

Описание методов

GetInstance() публичный статический Метод

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 /// .
Результат IPrivacyProtocol