C# 클래스 GSF.Security.SecureStreamClientBase

Creates a secure stream that connects to a server.
상속: GSF.Diagnostics.DisposableLoggingClassBase
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian

공개 메소드들

메소드 설명
Authenticate ( Stream stream, bool useSsl = true ) : Stream

Authenticates the supplied stream. Returns the secure stream.

TryAuthenticate ( Stream stream, bool useSsl = true ) : bool

Attempts to authenticate the provided stream, disposing the secure stream upon completion.

TryAuthenticate ( Stream stream, bool useSsl, Stream &secureStream ) : bool

Attempts to authenticate the supplied stream.

보호된 메소드들

메소드 설명
InternalTryAuthenticate ( Stream stream, byte certSignatures ) : bool

비공개 메소드들

메소드 설명
SecureStreamClientBase ( ) : System
TryConnectSsl ( Stream stream, SslStream &ssl ) : bool
TryResumeSession ( Stream &secureStream, Stream stream2, byte certSignatures ) : bool
UserCertificateSelectionCallback ( object sender, string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string acceptableIssuers ) : X509Certificate
UserCertificateValidationCallback ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

메소드 상세

Authenticate() 공개 메소드

Authenticates the supplied stream. Returns the secure stream.
public Authenticate ( Stream stream, bool useSsl = true ) : Stream
stream Stream the stream to authenticate
useSsl bool gets if SSL will be used to authenticate
리턴 Stream

InternalTryAuthenticate() 보호된 추상적인 메소드

protected abstract InternalTryAuthenticate ( Stream stream, byte certSignatures ) : bool
stream Stream
certSignatures byte
리턴 bool

TryAuthenticate() 공개 메소드

Attempts to authenticate the provided stream, disposing the secure stream upon completion.
public TryAuthenticate ( Stream stream, bool useSsl = true ) : bool
stream Stream the stream to authenticate
useSsl bool gets if SSL will be used to authenticate
리턴 bool

TryAuthenticate() 공개 메소드

Attempts to authenticate the supplied stream.
public TryAuthenticate ( Stream stream, bool useSsl, Stream &secureStream ) : bool
stream Stream The stream to authenticate
useSsl bool
secureStream Stream the secure stream if the authentication was successful.
리턴 bool