C# Класс Mono.Security.Protocol.Tls.RecordProtocol

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
context Context
innerStream Stream

Открытые методы

Метод Описание
BeginReceiveRecord ( Stream record, AsyncCallback callback, object state ) : IAsyncResult
BeginSendRecord ( ContentType contentType, byte recordData, AsyncCallback callback, object state ) : IAsyncResult
BeginSendRecord ( HandshakeType handshakeType, AsyncCallback callback, object state ) : IAsyncResult
EncodeRecord ( ContentType contentType, byte recordData ) : byte[]
EncodeRecord ( ContentType contentType, byte recordData, int offset, int count ) : byte[]
EndReceiveRecord ( IAsyncResult asyncResult ) : byte[]
EndSendRecord ( IAsyncResult asyncResult ) : void
GetMessage ( HandshakeType type ) : HandshakeMessage
ReceiveRecord ( Stream record ) : byte[]
RecordProtocol ( Stream innerStream, Context context ) : System
SendAlert ( Alert alert ) : void
SendAlert ( AlertDescription description ) : void
SendAlert ( AlertLevel level, AlertDescription description ) : void
SendChangeCipherSpec ( ) : void
SendRecord ( ContentType contentType, byte recordData ) : void
SendRecord ( HandshakeType type ) : void

Защищенные методы

Метод Описание
ProcessChangeCipherSpec ( ) : void
ProcessHandshakeMessage ( TlsStream handMsg ) : void

Приватные методы

Метод Описание
Compare ( byte array1, byte array2 ) : bool
InternalReceiveRecordCallback ( IAsyncResult asyncResult ) : void
InternalSendRecordCallback ( IAsyncResult ar ) : void
MapV2CipherCode ( string prefix, int code ) : CipherSuite
ProcessAlert ( AlertLevel alertLevel, AlertDescription alertDesc ) : void
ProcessCipherSpecV2Buffer ( SecurityProtocolType protocol, byte buffer ) : void
ReadClientHelloV2 ( Stream record ) : byte[]
ReadRecordBuffer ( int contentType, Stream record ) : byte[]
ReadStandardRecordBuffer ( Stream record ) : byte[]
decryptRecordFragment ( ContentType contentType, byte fragment ) : byte[]
encryptRecordFragment ( ContentType contentType, byte fragment ) : byte[]

Описание методов

BeginReceiveRecord() публичный Метод

public BeginReceiveRecord ( Stream record, AsyncCallback callback, object state ) : IAsyncResult
record Stream
callback AsyncCallback
state object
Результат IAsyncResult

BeginSendRecord() публичный Метод

public BeginSendRecord ( ContentType contentType, byte recordData, AsyncCallback callback, object state ) : IAsyncResult
contentType ContentType
recordData byte
callback AsyncCallback
state object
Результат IAsyncResult

BeginSendRecord() публичный Метод

public BeginSendRecord ( HandshakeType handshakeType, AsyncCallback callback, object state ) : IAsyncResult
handshakeType HandshakeType
callback AsyncCallback
state object
Результат IAsyncResult

EncodeRecord() публичный Метод

public EncodeRecord ( ContentType contentType, byte recordData ) : byte[]
contentType ContentType
recordData byte
Результат byte[]

EncodeRecord() публичный Метод

public EncodeRecord ( ContentType contentType, byte recordData, int offset, int count ) : byte[]
contentType ContentType
recordData byte
offset int
count int
Результат byte[]

EndReceiveRecord() публичный Метод

public EndReceiveRecord ( IAsyncResult asyncResult ) : byte[]
asyncResult IAsyncResult
Результат byte[]

EndSendRecord() публичный Метод

public EndSendRecord ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Результат void

GetMessage() публичный Метод

public GetMessage ( HandshakeType type ) : HandshakeMessage
type HandshakeType
Результат HandshakeMessage

ProcessChangeCipherSpec() защищенный Метод

protected ProcessChangeCipherSpec ( ) : void
Результат void

ProcessHandshakeMessage() защищенный абстрактный Метод

protected abstract ProcessHandshakeMessage ( TlsStream handMsg ) : void
handMsg TlsStream
Результат void

ReceiveRecord() публичный Метод

public ReceiveRecord ( Stream record ) : byte[]
record Stream
Результат byte[]

RecordProtocol() публичный Метод

public RecordProtocol ( Stream innerStream, Context context ) : System
innerStream Stream
context Context
Результат System

SendAlert() публичный Метод

public SendAlert ( Alert alert ) : void
alert Alert
Результат void

SendAlert() публичный Метод

public SendAlert ( AlertDescription description ) : void
description AlertDescription
Результат void

SendAlert() публичный Метод

public SendAlert ( AlertLevel level, AlertDescription description ) : void
level AlertLevel
description AlertDescription
Результат void

SendChangeCipherSpec() публичный Метод

public SendChangeCipherSpec ( ) : void
Результат void

SendRecord() публичный Метод

public SendRecord ( ContentType contentType, byte recordData ) : void
contentType ContentType
recordData byte
Результат void

SendRecord() публичный Метод

public SendRecord ( HandshakeType type ) : void
type HandshakeType
Результат void

Описание свойств

context защищенное свойство

protected Context context
Результат Context

innerStream защищенное свойство

protected Stream innerStream
Результат Stream