C# Class System.Net.Security.SslStream

Inheritance: AuthenticatedStream
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
AuthenticateAsClient ( string targetHost ) : void
AuthenticateAsClient ( string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation ) : void
AuthenticateAsClient ( string targetHost, System clientCertificates, bool checkCertificateRevocation ) : void
AuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : void
AuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation ) : void
AuthenticateAsClientAsync ( string targetHost ) : System.Threading.Tasks.Task
AuthenticateAsClientAsync ( string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
AuthenticateAsClientAsync ( string targetHost, System clientCertificates, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
AuthenticateAsClientAsync ( string targetHost ) : Task
AuthenticateAsClientAsync ( string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : Task
AuthenticateAsClientAsync ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation ) : Task
AuthenticateAsServer ( System serverCertificate ) : void
AuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation ) : void
AuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : void
AuthenticateAsServer ( X509Certificate serverCertificate ) : void
AuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : void
AuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : void
AuthenticateAsServerAsync ( System serverCertificate ) : System.Threading.Tasks.Task
AuthenticateAsServerAsync ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
AuthenticateAsServerAsync ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
AuthenticateAsServerAsync ( X509Certificate serverCertificate ) : Task
AuthenticateAsServerAsync ( X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : Task
AuthenticateAsServerAsync ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : Task
BeginAuthenticateAsClient ( string targetHost, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginAuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginAuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginAuthenticateAsClient ( string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
BeginAuthenticateAsClient ( string targetHost, System clientCertificates, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
BeginAuthenticateAsClient ( string targetHost, System asyncCallback, object asyncState ) : System.IAsyncResult
BeginAuthenticateAsServer ( X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginAuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginAuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginAuthenticateAsServer ( System serverCertificate, System asyncCallback, object asyncState ) : System.IAsyncResult
BeginAuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
BeginAuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
BeginRead ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
EndAuthenticateAsClient ( IAsyncResult asyncResult ) : void
EndAuthenticateAsServer ( IAsyncResult asyncResult ) : void
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
Seek ( long offset, System origin ) : long
SetLength ( long value ) : void
ShutdownAsync ( ) : System.Threading.Tasks.Task
ShutdownAsync ( ) : Task
SslStream ( System innerStream )
SslStream ( System innerStream, bool leaveInnerStreamOpen )
SslStream ( System innerStream, bool leaveInnerStreamOpen, System userCertificateValidationCallback )
SslStream ( System innerStream, bool leaveInnerStreamOpen, System userCertificateValidationCallback, System userCertificateSelectionCallback )
SslStream ( System innerStream, bool leaveInnerStreamOpen, System userCertificateValidationCallback, System userCertificateSelectionCallback, System encryptionPolicy )
SslStream ( Stream innerStream ) : System.IO
SslStream ( Stream innerStream, bool leaveInnerStreamOpen ) : System.IO
SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback ) : System.IO
SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback ) : System.IO
SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy ) : System.IO
Write ( byte buffer ) : void
Write ( byte buffer, int offset, int count ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
BeginShutdown ( AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
EndShutdown ( IAsyncResult asyncResult ) : void
GetChannelBinding ( ChannelBindingKind kind ) : ChannelBinding
UserCertSelectionCallbackWrapper ( string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string acceptableIssuers ) : X509Certificate
UserCertValidationCallbackWrapper ( string hostName, X509Certificate2 certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method Details

AuthenticateAsClient() public méthode

public AuthenticateAsClient ( string targetHost ) : void
targetHost string
Résultat void

AuthenticateAsClient() public méthode

public AuthenticateAsClient ( string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation ) : void
targetHost string
clientCertificates System
enabledSslProtocols System
checkCertificateRevocation bool
Résultat void

AuthenticateAsClient() public méthode

public AuthenticateAsClient ( string targetHost, System clientCertificates, bool checkCertificateRevocation ) : void
targetHost string
clientCertificates System
checkCertificateRevocation bool
Résultat void

AuthenticateAsClient() public méthode

public AuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : void
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
enabledSslProtocols SslProtocols
checkCertificateRevocation bool
Résultat void

AuthenticateAsClient() public méthode

public AuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation ) : void
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
checkCertificateRevocation bool
Résultat void

AuthenticateAsClientAsync() public méthode

public AuthenticateAsClientAsync ( string targetHost ) : System.Threading.Tasks.Task
targetHost string
Résultat System.Threading.Tasks.Task

AuthenticateAsClientAsync() public méthode

public AuthenticateAsClientAsync ( string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
targetHost string
clientCertificates System
enabledSslProtocols System
checkCertificateRevocation bool
Résultat System.Threading.Tasks.Task

AuthenticateAsClientAsync() public méthode

public AuthenticateAsClientAsync ( string targetHost, System clientCertificates, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
targetHost string
clientCertificates System
checkCertificateRevocation bool
Résultat System.Threading.Tasks.Task

AuthenticateAsClientAsync() public méthode

public AuthenticateAsClientAsync ( string targetHost ) : Task
targetHost string
Résultat Task

AuthenticateAsClientAsync() public méthode

public AuthenticateAsClientAsync ( string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : Task
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
enabledSslProtocols SslProtocols
checkCertificateRevocation bool
Résultat Task

AuthenticateAsClientAsync() public méthode

public AuthenticateAsClientAsync ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation ) : Task
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
checkCertificateRevocation bool
Résultat Task

AuthenticateAsServer() public méthode

public AuthenticateAsServer ( System serverCertificate ) : void
serverCertificate System
Résultat void

AuthenticateAsServer() public méthode

public AuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation ) : void
serverCertificate System
clientCertificateRequired bool
enabledSslProtocols System
checkCertificateRevocation bool
Résultat void

AuthenticateAsServer() public méthode

public AuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : void
serverCertificate System
clientCertificateRequired bool
checkCertificateRevocation bool
Résultat void

AuthenticateAsServer() public méthode

public AuthenticateAsServer ( X509Certificate serverCertificate ) : void
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
Résultat void

AuthenticateAsServer() public méthode

public AuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : void
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
enabledSslProtocols SslProtocols
checkCertificateRevocation bool
Résultat void

AuthenticateAsServer() public méthode

public AuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : void
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
checkCertificateRevocation bool
Résultat void

AuthenticateAsServerAsync() public méthode

public AuthenticateAsServerAsync ( System serverCertificate ) : System.Threading.Tasks.Task
serverCertificate System
Résultat System.Threading.Tasks.Task

AuthenticateAsServerAsync() public méthode

public AuthenticateAsServerAsync ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
serverCertificate System
clientCertificateRequired bool
enabledSslProtocols System
checkCertificateRevocation bool
Résultat System.Threading.Tasks.Task

AuthenticateAsServerAsync() public méthode

public AuthenticateAsServerAsync ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
serverCertificate System
clientCertificateRequired bool
checkCertificateRevocation bool
Résultat System.Threading.Tasks.Task

AuthenticateAsServerAsync() public méthode

public AuthenticateAsServerAsync ( X509Certificate serverCertificate ) : Task
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
Résultat Task

AuthenticateAsServerAsync() public méthode

public AuthenticateAsServerAsync ( X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : Task
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
enabledSslProtocols SslProtocols
checkCertificateRevocation bool
Résultat Task

AuthenticateAsServerAsync() public méthode

public AuthenticateAsServerAsync ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : Task
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
checkCertificateRevocation bool
Résultat Task

BeginAuthenticateAsClient() public méthode

public BeginAuthenticateAsClient ( string targetHost, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
targetHost string
asyncCallback AsyncCallback
asyncState object
Résultat IAsyncResult

BeginAuthenticateAsClient() public méthode

public BeginAuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
enabledSslProtocols SslProtocols
checkCertificateRevocation bool
asyncCallback AsyncCallback
asyncState object
Résultat IAsyncResult

BeginAuthenticateAsClient() public méthode

public BeginAuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
checkCertificateRevocation bool
asyncCallback AsyncCallback
asyncState object
Résultat IAsyncResult

BeginAuthenticateAsClient() public méthode

public BeginAuthenticateAsClient ( string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
targetHost string
clientCertificates System
enabledSslProtocols System
checkCertificateRevocation bool
asyncCallback System
asyncState object
Résultat System.IAsyncResult

BeginAuthenticateAsClient() public méthode

public BeginAuthenticateAsClient ( string targetHost, System clientCertificates, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
targetHost string
clientCertificates System
checkCertificateRevocation bool
asyncCallback System
asyncState object
Résultat System.IAsyncResult

BeginAuthenticateAsClient() public méthode

public BeginAuthenticateAsClient ( string targetHost, System asyncCallback, object asyncState ) : System.IAsyncResult
targetHost string
asyncCallback System
asyncState object
Résultat System.IAsyncResult

BeginAuthenticateAsServer() public méthode

public BeginAuthenticateAsServer ( X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
asyncCallback AsyncCallback
asyncState object
Résultat IAsyncResult

BeginAuthenticateAsServer() public méthode

public BeginAuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
enabledSslProtocols SslProtocols
checkCertificateRevocation bool
asyncCallback AsyncCallback
asyncState object
Résultat IAsyncResult

BeginAuthenticateAsServer() public méthode

public BeginAuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
checkCertificateRevocation bool
asyncCallback AsyncCallback
asyncState object
Résultat IAsyncResult

BeginAuthenticateAsServer() public méthode

public BeginAuthenticateAsServer ( System serverCertificate, System asyncCallback, object asyncState ) : System.IAsyncResult
serverCertificate System
asyncCallback System
asyncState object
Résultat System.IAsyncResult

BeginAuthenticateAsServer() public méthode

public BeginAuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
serverCertificate System
clientCertificateRequired bool
enabledSslProtocols System
checkCertificateRevocation bool
asyncCallback System
asyncState object
Résultat System.IAsyncResult

BeginAuthenticateAsServer() public méthode

public BeginAuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
serverCertificate System
clientCertificateRequired bool
checkCertificateRevocation bool
asyncCallback System
asyncState object
Résultat System.IAsyncResult

BeginRead() public méthode

public BeginRead ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
Résultat IAsyncResult

BeginWrite() public méthode

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
Résultat IAsyncResult

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndAuthenticateAsClient() public méthode

public EndAuthenticateAsClient ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

EndAuthenticateAsServer() public méthode

public EndAuthenticateAsServer ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

EndRead() public méthode

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndWrite() public méthode

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

Seek() public méthode

public Seek ( long offset, System origin ) : long
offset long
origin System
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

ShutdownAsync() public méthode

public ShutdownAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

ShutdownAsync() public méthode

public ShutdownAsync ( ) : Task
Résultat Task

SslStream() public méthode

public SslStream ( System innerStream )
innerStream System

SslStream() public méthode

public SslStream ( System innerStream, bool leaveInnerStreamOpen )
innerStream System
leaveInnerStreamOpen bool

SslStream() public méthode

public SslStream ( System innerStream, bool leaveInnerStreamOpen, System userCertificateValidationCallback )
innerStream System
leaveInnerStreamOpen bool
userCertificateValidationCallback System

SslStream() public méthode

public SslStream ( System innerStream, bool leaveInnerStreamOpen, System userCertificateValidationCallback, System userCertificateSelectionCallback )
innerStream System
leaveInnerStreamOpen bool
userCertificateValidationCallback System
userCertificateSelectionCallback System

SslStream() public méthode

public SslStream ( System innerStream, bool leaveInnerStreamOpen, System userCertificateValidationCallback, System userCertificateSelectionCallback, System encryptionPolicy )
innerStream System
leaveInnerStreamOpen bool
userCertificateValidationCallback System
userCertificateSelectionCallback System
encryptionPolicy System

SslStream() public méthode

public SslStream ( Stream innerStream ) : System.IO
innerStream Stream
Résultat System.IO

SslStream() public méthode

public SslStream ( Stream innerStream, bool leaveInnerStreamOpen ) : System.IO
innerStream Stream
leaveInnerStreamOpen bool
Résultat System.IO

SslStream() public méthode

public SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback ) : System.IO
innerStream Stream
leaveInnerStreamOpen bool
userCertificateValidationCallback RemoteCertificateValidationCallback
Résultat System.IO

SslStream() public méthode

public SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback ) : System.IO
innerStream Stream
leaveInnerStreamOpen bool
userCertificateValidationCallback RemoteCertificateValidationCallback
userCertificateSelectionCallback LocalCertificateSelectionCallback
Résultat System.IO

SslStream() public méthode

public SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy ) : System.IO
innerStream Stream
leaveInnerStreamOpen bool
userCertificateValidationCallback RemoteCertificateValidationCallback
userCertificateSelectionCallback LocalCertificateSelectionCallback
encryptionPolicy EncryptionPolicy
Résultat System.IO

Write() public méthode

public Write ( byte buffer ) : void
buffer byte
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void