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(....);
파일 보기 프로젝트 열기: griffina/SnmpSharpNet 1 사용 예제들

공개 메소드들

메소드 설명
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