C# 클래스 System.Net.Security.SslStream

상속: AuthenticatedStream
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

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

메소드 상세

AuthenticateAsClient() 공개 메소드

public AuthenticateAsClient ( string targetHost ) : void
targetHost string
리턴 void

AuthenticateAsClient() 공개 메소드

public AuthenticateAsClient ( string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation ) : void
targetHost string
clientCertificates System
enabledSslProtocols System
checkCertificateRevocation bool
리턴 void

AuthenticateAsClient() 공개 메소드

public AuthenticateAsClient ( string targetHost, System clientCertificates, bool checkCertificateRevocation ) : void
targetHost string
clientCertificates System
checkCertificateRevocation bool
리턴 void

AuthenticateAsClient() 공개 메소드

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

AuthenticateAsClient() 공개 메소드

public AuthenticateAsClient ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation ) : void
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
checkCertificateRevocation bool
리턴 void

AuthenticateAsClientAsync() 공개 메소드

public AuthenticateAsClientAsync ( string targetHost ) : System.Threading.Tasks.Task
targetHost string
리턴 System.Threading.Tasks.Task

AuthenticateAsClientAsync() 공개 메소드

public AuthenticateAsClientAsync ( string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
targetHost string
clientCertificates System
enabledSslProtocols System
checkCertificateRevocation bool
리턴 System.Threading.Tasks.Task

AuthenticateAsClientAsync() 공개 메소드

public AuthenticateAsClientAsync ( string targetHost, System clientCertificates, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
targetHost string
clientCertificates System
checkCertificateRevocation bool
리턴 System.Threading.Tasks.Task

AuthenticateAsClientAsync() 공개 메소드

public AuthenticateAsClientAsync ( string targetHost ) : Task
targetHost string
리턴 Task

AuthenticateAsClientAsync() 공개 메소드

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

AuthenticateAsClientAsync() 공개 메소드

public AuthenticateAsClientAsync ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation ) : Task
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
checkCertificateRevocation bool
리턴 Task

AuthenticateAsServer() 공개 메소드

public AuthenticateAsServer ( System serverCertificate ) : void
serverCertificate System
리턴 void

AuthenticateAsServer() 공개 메소드

public AuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation ) : void
serverCertificate System
clientCertificateRequired bool
enabledSslProtocols System
checkCertificateRevocation bool
리턴 void

AuthenticateAsServer() 공개 메소드

public AuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : void
serverCertificate System
clientCertificateRequired bool
checkCertificateRevocation bool
리턴 void

AuthenticateAsServer() 공개 메소드

public AuthenticateAsServer ( X509Certificate serverCertificate ) : void
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
리턴 void

AuthenticateAsServer() 공개 메소드

public AuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : void
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
enabledSslProtocols SslProtocols
checkCertificateRevocation bool
리턴 void

AuthenticateAsServer() 공개 메소드

public AuthenticateAsServer ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : void
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
checkCertificateRevocation bool
리턴 void

AuthenticateAsServerAsync() 공개 메소드

public AuthenticateAsServerAsync ( System serverCertificate ) : System.Threading.Tasks.Task
serverCertificate System
리턴 System.Threading.Tasks.Task

AuthenticateAsServerAsync() 공개 메소드

public AuthenticateAsServerAsync ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
serverCertificate System
clientCertificateRequired bool
enabledSslProtocols System
checkCertificateRevocation bool
리턴 System.Threading.Tasks.Task

AuthenticateAsServerAsync() 공개 메소드

public AuthenticateAsServerAsync ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
serverCertificate System
clientCertificateRequired bool
checkCertificateRevocation bool
리턴 System.Threading.Tasks.Task

AuthenticateAsServerAsync() 공개 메소드

public AuthenticateAsServerAsync ( X509Certificate serverCertificate ) : Task
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
리턴 Task

AuthenticateAsServerAsync() 공개 메소드

public AuthenticateAsServerAsync ( X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation ) : Task
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
enabledSslProtocols SslProtocols
checkCertificateRevocation bool
리턴 Task

AuthenticateAsServerAsync() 공개 메소드

public AuthenticateAsServerAsync ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : Task
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
checkCertificateRevocation bool
리턴 Task

BeginAuthenticateAsClient() 공개 메소드

public BeginAuthenticateAsClient ( string targetHost, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
targetHost string
asyncCallback AsyncCallback
asyncState object
리턴 IAsyncResult

BeginAuthenticateAsClient() 공개 메소드

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
리턴 IAsyncResult

BeginAuthenticateAsClient() 공개 메소드

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
리턴 IAsyncResult

BeginAuthenticateAsClient() 공개 메소드

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
리턴 System.IAsyncResult

BeginAuthenticateAsClient() 공개 메소드

public BeginAuthenticateAsClient ( string targetHost, System clientCertificates, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
targetHost string
clientCertificates System
checkCertificateRevocation bool
asyncCallback System
asyncState object
리턴 System.IAsyncResult

BeginAuthenticateAsClient() 공개 메소드

public BeginAuthenticateAsClient ( string targetHost, System asyncCallback, object asyncState ) : System.IAsyncResult
targetHost string
asyncCallback System
asyncState object
리턴 System.IAsyncResult

BeginAuthenticateAsServer() 공개 메소드

public BeginAuthenticateAsServer ( X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
asyncCallback AsyncCallback
asyncState object
리턴 IAsyncResult

BeginAuthenticateAsServer() 공개 메소드

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
리턴 IAsyncResult

BeginAuthenticateAsServer() 공개 메소드

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
리턴 IAsyncResult

BeginAuthenticateAsServer() 공개 메소드

public BeginAuthenticateAsServer ( System serverCertificate, System asyncCallback, object asyncState ) : System.IAsyncResult
serverCertificate System
asyncCallback System
asyncState object
리턴 System.IAsyncResult

BeginAuthenticateAsServer() 공개 메소드

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
리턴 System.IAsyncResult

BeginAuthenticateAsServer() 공개 메소드

public BeginAuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult
serverCertificate System
clientCertificateRequired bool
checkCertificateRevocation bool
asyncCallback System
asyncState object
리턴 System.IAsyncResult

BeginRead() 공개 메소드

public BeginRead ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
리턴 IAsyncResult

BeginWrite() 공개 메소드

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
리턴 IAsyncResult

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EndAuthenticateAsClient() 공개 메소드

public EndAuthenticateAsClient ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

EndAuthenticateAsServer() 공개 메소드

public EndAuthenticateAsServer ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

EndRead() 공개 메소드

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
리턴 int

EndWrite() 공개 메소드

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

Read() 공개 메소드

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

ReadByte() 공개 메소드

public ReadByte ( ) : int
리턴 int

Seek() 공개 메소드

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

Seek() 공개 메소드

public Seek ( long offset, System origin ) : long
offset long
origin System
리턴 long

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

ShutdownAsync() 공개 메소드

public ShutdownAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

ShutdownAsync() 공개 메소드

public ShutdownAsync ( ) : Task
리턴 Task

SslStream() 공개 메소드

public SslStream ( System innerStream )
innerStream System

SslStream() 공개 메소드

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

SslStream() 공개 메소드

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

SslStream() 공개 메소드

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

SslStream() 공개 메소드

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

SslStream() 공개 메소드

public SslStream ( Stream innerStream ) : System.IO
innerStream Stream
리턴 System.IO

SslStream() 공개 메소드

public SslStream ( Stream innerStream, bool leaveInnerStreamOpen ) : System.IO
innerStream Stream
leaveInnerStreamOpen bool
리턴 System.IO

SslStream() 공개 메소드

public SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback ) : System.IO
innerStream Stream
leaveInnerStreamOpen bool
userCertificateValidationCallback RemoteCertificateValidationCallback
리턴 System.IO

SslStream() 공개 메소드

public SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback ) : System.IO
innerStream Stream
leaveInnerStreamOpen bool
userCertificateValidationCallback RemoteCertificateValidationCallback
userCertificateSelectionCallback LocalCertificateSelectionCallback
리턴 System.IO

SslStream() 공개 메소드

public SslStream ( Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy ) : System.IO
innerStream Stream
leaveInnerStreamOpen bool
userCertificateValidationCallback RemoteCertificateValidationCallback
userCertificateSelectionCallback LocalCertificateSelectionCallback
encryptionPolicy EncryptionPolicy
리턴 System.IO

Write() 공개 메소드

public Write ( byte buffer ) : void
buffer byte
리턴 void

Write() 공개 메소드

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
리턴 void