C# Класс Brunet.Security.SecurityAssociation

This is the brains of the security system. Each SecurityAssociation represents a Secure connection via an ISender, such that two different ISenders would need their own SecurityAssociation.
Наследование: Brunet.SimpleSource, IDataHandler, ISender
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Sender ISender

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

Свойство Тип Описание
_ch CertificateHandler
_closed int
_receiving bool
_sending bool
_state States
_state_lock object

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

Метод Описание
CheckState ( ) : void

Close ( string reason ) : bool

This closes the SA and cleans up its state.

HandleData ( Brunet.MemBlock data, ISender return_path, object state ) : void

All incoming data filters through here.

SecurityAssociation ( ISender sender, CertificateHandler ch ) : Mono.Security.X509

Send ( ICopyable app_data ) : void

All outgoing data filters through here.

ToString ( ) : string
ToUri ( ) : string
Verify ( string id ) : bool

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

Метод Описание
HandleIncoming ( Brunet.MemBlock data, Brunet.MemBlock &app_data ) : bool

HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool

UpdateState ( States next ) : void

UpdateState ( States current, States next ) : void
UpdateState ( States current, States next, bool if_current ) : void

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

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

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

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

This closes the SA and cleans up its state.
public Close ( string reason ) : bool
reason string
Результат bool

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

All incoming data filters through here.
public HandleData ( Brunet.MemBlock data, ISender return_path, object state ) : void
data Brunet.MemBlock
return_path ISender
state object
Результат void

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

abstract protected HandleIncoming ( Brunet.MemBlock data, Brunet.MemBlock &app_data ) : bool
data Brunet.MemBlock
app_data Brunet.MemBlock
Результат bool

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

abstract protected HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool
app_data ICopyable
data ICopyable
Результат bool

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

public SecurityAssociation ( ISender sender, CertificateHandler ch ) : Mono.Security.X509
sender ISender
ch CertificateHandler
Результат Mono.Security.X509

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

All outgoing data filters through here.
public Send ( ICopyable app_data ) : void
app_data ICopyable
Результат void

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

public ToString ( ) : string
Результат string

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

public ToUri ( ) : string
Результат string

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

protected UpdateState ( States next ) : void
next States
Результат void

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

protected UpdateState ( States current, States next ) : void
current States
next States
Результат void

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

protected UpdateState ( States current, States next, bool if_current ) : void
current States
next States
if_current bool
Результат void

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

public Verify ( string id ) : bool
id string
Результат bool

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

Sender публичное свойство

The insecure sender we send over.
public ISender Sender
Результат ISender

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

protected CertificateHandler _ch
Результат CertificateHandler

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

protected int _closed
Результат int

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

protected bool _receiving
Результат bool

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

protected bool _sending
Результат bool

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

protected States _state
Результат States

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

protected object _state_lock
Результат object