C# Class Org.BouncyCastle.Crypto.Tls.DtlsClientProtocol

Inheritance: Org.BouncyCastle.Crypto.Tls.DtlsProtocol
Mostrar archivo Open project: bcgit/bc-csharp Class Usage Examples

Public Methods

Method Description
Connect ( TlsClient client, DatagramTransport transport ) : Org.BouncyCastle.Crypto.Tls.DtlsTransport
DtlsClientProtocol ( SecureRandom secureRandom ) : System

Protected Methods

Method Description
GenerateCertificateVerify ( ClientHandshakeState state, Org.BouncyCastle.Crypto.Tls.DigitallySigned certificateVerify ) : byte[]
GenerateClientHello ( ClientHandshakeState state, TlsClient client ) : byte[]
GenerateClientKeyExchange ( ClientHandshakeState state ) : byte[]
InvalidateSession ( ClientHandshakeState state ) : void
PatchClientHelloWithCookie ( byte clientHelloBody, byte cookie ) : byte[]
ProcessCertificateRequest ( ClientHandshakeState state, byte body ) : void
ProcessCertificateStatus ( ClientHandshakeState state, byte body ) : void
ProcessHelloVerifyRequest ( ClientHandshakeState state, byte body ) : byte[]
ProcessNewSessionTicket ( ClientHandshakeState state, byte body ) : void
ProcessServerCertificate ( ClientHandshakeState state, byte body ) : Certificate
ProcessServerHello ( ClientHandshakeState state, byte body ) : void
ProcessServerKeyExchange ( ClientHandshakeState state, byte body ) : void
ProcessServerSupplementalData ( ClientHandshakeState state, byte body ) : void
ReportServerVersion ( ClientHandshakeState state, ProtocolVersion server_version ) : void

Private Methods

Method Description
AbortClientHandshake ( ClientHandshakeState state, DtlsRecordLayer recordLayer, byte alertDescription ) : void
ClientHandshake ( ClientHandshakeState state, DtlsRecordLayer recordLayer ) : Org.BouncyCastle.Crypto.Tls.DtlsTransport

Method Details

Connect() public method

public Connect ( TlsClient client, DatagramTransport transport ) : Org.BouncyCastle.Crypto.Tls.DtlsTransport
client TlsClient
transport DatagramTransport
return Org.BouncyCastle.Crypto.Tls.DtlsTransport

DtlsClientProtocol() public method

public DtlsClientProtocol ( SecureRandom secureRandom ) : System
secureRandom Org.BouncyCastle.Security.SecureRandom
return System

GenerateCertificateVerify() protected method

protected GenerateCertificateVerify ( ClientHandshakeState state, Org.BouncyCastle.Crypto.Tls.DigitallySigned certificateVerify ) : byte[]
state ClientHandshakeState
certificateVerify Org.BouncyCastle.Crypto.Tls.DigitallySigned
return byte[]

GenerateClientHello() protected method

protected GenerateClientHello ( ClientHandshakeState state, TlsClient client ) : byte[]
state ClientHandshakeState
client TlsClient
return byte[]

GenerateClientKeyExchange() protected method

protected GenerateClientKeyExchange ( ClientHandshakeState state ) : byte[]
state ClientHandshakeState
return byte[]

InvalidateSession() protected method

protected InvalidateSession ( ClientHandshakeState state ) : void
state ClientHandshakeState
return void

PatchClientHelloWithCookie() protected static method

protected static PatchClientHelloWithCookie ( byte clientHelloBody, byte cookie ) : byte[]
clientHelloBody byte
cookie byte
return byte[]

ProcessCertificateRequest() protected method

protected ProcessCertificateRequest ( ClientHandshakeState state, byte body ) : void
state ClientHandshakeState
body byte
return void

ProcessCertificateStatus() protected method

protected ProcessCertificateStatus ( ClientHandshakeState state, byte body ) : void
state ClientHandshakeState
body byte
return void

ProcessHelloVerifyRequest() protected method

protected ProcessHelloVerifyRequest ( ClientHandshakeState state, byte body ) : byte[]
state ClientHandshakeState
body byte
return byte[]

ProcessNewSessionTicket() protected method

protected ProcessNewSessionTicket ( ClientHandshakeState state, byte body ) : void
state ClientHandshakeState
body byte
return void

ProcessServerCertificate() protected method

protected ProcessServerCertificate ( ClientHandshakeState state, byte body ) : Certificate
state ClientHandshakeState
body byte
return Certificate

ProcessServerHello() protected method

protected ProcessServerHello ( ClientHandshakeState state, byte body ) : void
state ClientHandshakeState
body byte
return void

ProcessServerKeyExchange() protected method

protected ProcessServerKeyExchange ( ClientHandshakeState state, byte body ) : void
state ClientHandshakeState
body byte
return void

ProcessServerSupplementalData() protected method

protected ProcessServerSupplementalData ( ClientHandshakeState state, byte body ) : void
state ClientHandshakeState
body byte
return void

ReportServerVersion() protected method

protected ReportServerVersion ( ClientHandshakeState state, ProtocolVersion server_version ) : void
state ClientHandshakeState
server_version ProtocolVersion
return void