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

An implementation of all high level protocols in TLS 1.0.
Mostrar archivo Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Private Properties

Property Type Description
ArrayContains bool
ArrayContains bool
AssertEmpty void
Connect void
CreateRenegotiationInfo byte[]
CreateSecureRandom SecureRandom
FailWithError void
Flush void
ProcessAlert void
ProcessApplicationData void
ProcessChangeCipherSpec void
ProcessData void
ProcessHandshake void
ProcessHandshakeMessage void
ReadApplicationData int
SafeReadData void
SafeWriteMessage void
SendAlert void
SendCertificateVerify void
SendClientCertificate void
SendClientKeyExchange void
WriteData void
WriteExtension void

Public Methods

Method Description
Close ( ) : void

Closes this connection

Connect ( TlsClient tlsClient ) : void
TlsProtocolHandler ( Stream s ) : System
TlsProtocolHandler ( Stream s, SecureRandom sr ) : System
TlsProtocolHandler ( Stream inStr, Stream outStr ) : System Both streams can be the same object
TlsProtocolHandler ( Stream inStr, Stream outStr, SecureRandom sr ) : System Both streams can be the same object

Private Methods

Method Description
ArrayContains ( CipherSuite a, CipherSuite n ) : bool
ArrayContains ( CompressionMethod a, CompressionMethod n ) : bool
AssertEmpty ( MemoryStream inStr ) : void
Connect ( ICertificateVerifyer verifyer ) : void
CreateRenegotiationInfo ( byte renegotiated_connection ) : byte[]
CreateSecureRandom ( ) : SecureRandom
FailWithError ( AlertLevel alertLevel, AlertDescription alertDescription ) : void
Flush ( ) : void
ProcessAlert ( ) : void
ProcessApplicationData ( ) : void
ProcessChangeCipherSpec ( ) : void
ProcessData ( ContentType protocol, byte buf, int offset, int len ) : void
ProcessHandshake ( ) : void
ProcessHandshakeMessage ( HandshakeType type, byte buf ) : void
ReadApplicationData ( byte buf, int offset, int len ) : int
SafeReadData ( ) : void
SafeWriteMessage ( ContentType type, byte buf, int offset, int len ) : void
SendAlert ( AlertLevel alertLevel, AlertDescription alertDescription ) : void
SendCertificateVerify ( byte data ) : void
SendClientCertificate ( Certificate clientCert ) : void
SendClientKeyExchange ( ) : void
WriteData ( byte buf, int offset, int len ) : void
WriteExtension ( Stream output, ExtensionType extType, byte extValue ) : void

Method Details

Close() public method

Closes this connection
If something goes wrong during closing.
public Close ( ) : void
return void

Connect() public method

public Connect ( TlsClient tlsClient ) : void
tlsClient TlsClient
return void

TlsProtocolHandler() public method

public TlsProtocolHandler ( Stream s ) : System
s Stream
return System

TlsProtocolHandler() public method

public TlsProtocolHandler ( Stream s, SecureRandom sr ) : System
s Stream
sr SecureRandom
return System

TlsProtocolHandler() public method

Both streams can be the same object
public TlsProtocolHandler ( Stream inStr, Stream outStr ) : System
inStr Stream
outStr Stream
return System

TlsProtocolHandler() public method

Both streams can be the same object
public TlsProtocolHandler ( Stream inStr, Stream outStr, SecureRandom sr ) : System
inStr Stream
outStr Stream
sr SecureRandom
return System