System.Net.Security.SslStream
namespace System.Net.Security
{
public class SslStream : AuthenticatedStream
{
public virtual bool CheckCertRevocationStatus { get; }
public virtual CipherAlgorithmType CipherAlgorithm { get; }
public virtual int CipherStrength { get; }
public virtual HashAlgorithmType HashAlgorithm { get; }
public virtual int HashStrength { get; }
public virtual ExchangeAlgorithmType KeyExchangeAlgorithm { get; }
public virtual int KeyExchangeStrength { get; }
public virtual X509Certificate LocalCertificate { get; }
public virtual X509Certificate RemoteCertificate { get; }
public virtual SslProtocols SslProtocol { get; }
public TransportContext TransportContext { get; }
public SslStream(Stream innerStream);
public SslStream(Stream innerStream, bool leaveInnerStreamOpen);
public SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback);
public SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback);
public SslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy);
public virtual void AuthenticateAsClient(string targetHost);
public virtual void AuthenticateAsClient(string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation);
public virtual Task AuthenticateAsClientAsync(string targetHost);
public virtual Task AuthenticateAsClientAsync(string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation);
public virtual void AuthenticateAsServer(X509Certificate serverCertificate);
public virtual void AuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation);
public virtual Task AuthenticateAsServerAsync(X509Certificate serverCertificate);
public virtual Task AuthenticateAsServerAsync(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation);
public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, AsyncCallback asyncCallback, object asyncState);
public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState);
public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState);
public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState);
public virtual void EndAuthenticateAsClient(IAsyncResult asyncResult);
public virtual void EndAuthenticateAsServer(IAsyncResult asyncResult);
public void Write(byte[] buffer);
}
}