C# Класс System.Net.Security.SecureChannel

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AcquireClientCredentials bool
AcquireServerCredentials bool
Close void
Decrypt SecurityStatusPal
Encrypt SecurityStatusPal
EnsurePrivateKey System.Security.Cryptography.X509Certificates.X509Certificate2
GenerateAlertToken ProtocolToken
GenerateToken SecurityStatusPal
GetAlertMessageFromChain TlsAlertMessage
GetChannelBinding System.Security.Authentication.ExtendedProtection.ChannelBinding
GetRequestCertificateAuthorities string[]
LogCertificateValidation void
MakeEx System.Security.Cryptography.X509Certificates.X509Certificate2
NextMessage ProtocolToken
ProcessHandshakeSuccess void
SecureChannel System.Collections.Generic
SetRefreshCredentialNeeded void
VerifyRemoteCertificate bool

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

Метод Описание
CreateFatalHandshakeAlertToken ( SslPolicyErrors sslPolicyErrors, X509Chain chain ) : ProtocolToken
CreateShutdownToken ( ) : ProtocolToken

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

Метод Описание
AcquireClientCredentials ( byte &thumbPrint ) : bool
AcquireServerCredentials ( byte &thumbPrint ) : bool
Close ( ) : void
Decrypt ( byte payload, int &offset, int &count ) : SecurityStatusPal
Encrypt ( byte buffer, int offset, int size, byte &output, int &resultSize ) : SecurityStatusPal
EnsurePrivateKey ( X509Certificate certificate ) : X509Certificate2
GenerateAlertToken ( ) : ProtocolToken
GenerateToken ( byte input, int offset, int count, byte &output ) : SecurityStatusPal
GetAlertMessageFromChain ( X509Chain chain ) : TlsAlertMessage
GetChannelBinding ( ChannelBindingKind kind ) : ChannelBinding
GetRequestCertificateAuthorities ( ) : string[]
LogCertificateValidation ( RemoteCertValidationCallback remoteCertValidationCallback, SslPolicyErrors sslPolicyErrors, bool success, X509Chain chain ) : void
MakeEx ( X509Certificate certificate ) : X509Certificate2
NextMessage ( byte incoming, int offset, int count ) : ProtocolToken
ProcessHandshakeSuccess ( ) : void
SecureChannel ( string hostname, bool serverMode, SslProtocols sslProtocols, X509Certificate serverCertificate, X509CertificateCollection clientCertificates, bool remoteCertRequired, bool checkCertName, bool checkCertRevocationStatus, EncryptionPolicy encryptionPolicy, LocalCertSelectionCallback certSelectionDelegate ) : System.Collections.Generic
SetRefreshCredentialNeeded ( ) : void
VerifyRemoteCertificate ( RemoteCertValidationCallback remoteCertValidationCallback, ProtocolToken &alertToken ) : bool

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

CreateFatalHandshakeAlertToken() публичный Метод

public CreateFatalHandshakeAlertToken ( SslPolicyErrors sslPolicyErrors, X509Chain chain ) : ProtocolToken
sslPolicyErrors SslPolicyErrors
chain System.Security.Cryptography.X509Certificates.X509Chain
Результат ProtocolToken

CreateShutdownToken() публичный Метод

public CreateShutdownToken ( ) : ProtocolToken
Результат ProtocolToken