C# Class AaltoTLS.SecureSession

Afficher le fichier Open project: juhovh/AaltoTLS Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public BeginClientHandshake ( string targetHost, AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
targetHost string
asyncCallback AsyncCallback
asyncState Object
Résultat IAsyncResult

BeginReceive() public méthode

public BeginReceive ( AsyncCallback asyncCallback, Object asyncState ) : IAsyncResult
asyncCallback AsyncCallback
asyncState Object
Résultat IAsyncResult

BeginSend() public méthode

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

BeginServerHandshake() public méthode

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

Close() public méthode

public Close ( ) : void
Résultat void

EndClientHandshake() public méthode

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

EndReceive() public méthode

public EndReceive ( IAsyncResult asyncResult ) : byte[]
asyncResult IAsyncResult
Résultat byte[]

EndSend() public méthode

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

EndServerHandshake() public méthode

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

PerformClientHandshake() public méthode

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

PerformServerHandshake() public méthode

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

Receive() public méthode

public Receive ( ) : byte[]
Résultat byte[]

SecureSession() public méthode

public SecureSession ( Stream stream, SecurityParameters securityParameters ) : System
stream Stream
securityParameters SecurityParameters
Résultat System

Send() public méthode

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

Send() public méthode

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