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
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Sender ISender

보호된 프로퍼티들

프로퍼티 타입 설명
_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