C# Class AaltoTLS.SecureSession

Exibir arquivo Open project: juhovh/AaltoTLS Class Usage Examples

Public Methods

Method Description
BeginClientHandshake ( string targetHost, AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
BeginReceive ( AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
BeginSend ( byte buffer, int offset, int count, AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
BeginServerHandshake ( X509Certificate serverCertificate, AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
Close ( ) : void
EndClientHandshake ( IAsyncResult asyncResult ) : void
EndReceive ( IAsyncResult asyncResult ) : byte[]
EndSend ( IAsyncResult asyncResult ) : void
EndServerHandshake ( IAsyncResult asyncResult ) : void
PerformClientHandshake ( string targetHost ) : void
PerformServerHandshake ( X509Certificate serverCertificate ) : void
Receive ( ) : byte[]
SecureSession ( Stream stream, SecurityParameters securityParameters ) : System
Send ( byte buffer ) : void
Send ( byte buffer, int offset, int count ) : void

Private Methods

Method Description
EndHandshake ( IAsyncResult asyncResult ) : void
ProcessAlertRecord ( Record record, AaltoTLS.AsyncGenericResult asyncGenericResult ) : void
ProcessChangeCipherSpecRecord ( Record record, AsyncHandshakeResult asyncHandshakeResult ) : void
ProcessHandshakeRecord ( Record record, AsyncHandshakeResult asyncHandshakeResult ) : void
ProcessSendChangeCipherSpec ( AsyncHandshakeResult asyncHandshakeResult ) : void
ProcessSendFatalAlert ( AaltoTLS.Alerts.Alert alert ) : void
ProcessSendHandshakePacket ( AsyncHandshakeResult asyncHandshakeResult ) : void
ProcessUnknownRecord ( Record record, AaltoTLS.AsyncGenericResult asyncGenericResult ) : void
ReceiveDataCallback ( IAsyncResult asyncResult ) : void
ReceiveHandshakeCallback ( IAsyncResult asyncResult ) : void
SendDataCallback ( IAsyncResult asyncResult ) : void
SendHandshakeCallback ( IAsyncResult asyncResult ) : void

Method Details

BeginClientHandshake() public method

public BeginClientHandshake ( string targetHost, AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
targetHost string
asyncCallback AsyncCallback
asyncState Object
return IAsyncResult

BeginReceive() public method

public BeginReceive ( AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
asyncCallback AsyncCallback
asyncState Object
return IAsyncResult

BeginSend() public method

public BeginSend ( byte buffer, int offset, int count, AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
asyncState Object
return IAsyncResult

BeginServerHandshake() public method

public BeginServerHandshake ( X509Certificate serverCertificate, AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
asyncCallback AsyncCallback
asyncState Object
return IAsyncResult

Close() public method

public Close ( ) : void
return void

EndClientHandshake() public method

public EndClientHandshake ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

EndReceive() public method

public EndReceive ( IAsyncResult asyncResult ) : byte[]
asyncResult IAsyncResult
return byte[]

EndSend() public method

public EndSend ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

EndServerHandshake() public method

public EndServerHandshake ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

PerformClientHandshake() public method

public PerformClientHandshake ( string targetHost ) : void
targetHost string
return void

PerformServerHandshake() public method

public PerformServerHandshake ( X509Certificate serverCertificate ) : void
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
return void

Receive() public method

public Receive ( ) : byte[]
return byte[]

SecureSession() public method

public SecureSession ( Stream stream, SecurityParameters securityParameters ) : System
stream Stream
securityParameters SecurityParameters
return System

Send() public method

public Send ( byte buffer ) : void
buffer byte
return void

Send() public method

public Send ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void