C# Class 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.
Inheritance: Brunet.SimpleSource, IDataHandler, ISender
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
Sender ISender

Protected Properties

Свойство Type Description
_ch CertificateHandler
_closed int
_receiving bool
_sending bool
_state States
_state_lock object

Méthodes publiques

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

Méthodes protégées

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

Method Details

CheckState() public méthode

public CheckState ( ) : void
Résultat void

Close() public méthode

This closes the SA and cleans up its state.
public Close ( string reason ) : bool
reason string
Résultat bool

HandleData() public méthode

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
Résultat void

HandleIncoming() abstract protected méthode

abstract protected HandleIncoming ( Brunet.MemBlock data, Brunet.MemBlock &app_data ) : bool
data Brunet.MemBlock
app_data Brunet.MemBlock
Résultat bool

HandleOutgoing() abstract protected méthode

abstract protected HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool
app_data ICopyable
data ICopyable
Résultat bool

SecurityAssociation() public méthode

public SecurityAssociation ( ISender sender, CertificateHandler ch ) : Mono.Security.X509
sender ISender
ch CertificateHandler
Résultat Mono.Security.X509

Send() public méthode

All outgoing data filters through here.
public Send ( ICopyable app_data ) : void
app_data ICopyable
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

ToUri() public méthode

public ToUri ( ) : string
Résultat string

UpdateState() protected méthode

protected UpdateState ( States next ) : void
next States
Résultat void

UpdateState() protected méthode

protected UpdateState ( States current, States next ) : void
current States
next States
Résultat void

UpdateState() protected méthode

protected UpdateState ( States current, States next, bool if_current ) : void
current States
next States
if_current bool
Résultat void

Verify() public méthode

public Verify ( string id ) : bool
id string
Résultat bool

Property Details

Sender public_oe property

The insecure sender we send over.
public ISender Sender
Résultat ISender

_ch protected_oe property

protected CertificateHandler _ch
Résultat CertificateHandler

_closed protected_oe property

protected int _closed
Résultat int

_receiving protected_oe property

protected bool _receiving
Résultat bool

_sending protected_oe property

protected bool _sending
Résultat bool

_state protected_oe property

protected States _state
Résultat States

_state_lock protected_oe property

protected object _state_lock
Résultat object