C# 클래스 Brunet.Security.PeerSec.PeerSecAssociation

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

공개 프로퍼티들

프로퍼티 타입 설명
DHEWithCertificateAndCAsInHash WriteOnceIdempotent
DHEWithCertificateAndCAsOutHash WriteOnceIdempotent
DHEWithCertificateHash WriteOnceIdempotent
RDHE WriteOnceIdempotent
RemoteCookie WriteOnceIdempotent
TIMEOUT int

보호된 프로퍼티들

프로퍼티 타입 설명
_active bool
_called_enable int
_called_start int
_current_epoch int
_current_sh Brunet.SecurityHandler
_dh Mono.Security.Cryptography.DiffieHellman
_hash_verified bool
_last_called_request_update System.DateTime
_last_epoch int
_last_update System.DateTime
_ldhe byte[]
_local_cert WriteOnceX509
_remote_cert WriteOnceX509
_spi int

공개 메소드들

메소드 설명
Close ( string reason ) : bool

This closes the SA and cleans up its state.

Enable ( ) : void

Enables the SA if it has been properly setup.

PeerSecAssociation ( ISender sender, Brunet.CertificateHandler ch, int spi ) : Brunet
Reset ( ) : void
Start ( ) : bool
ToString ( ) : string
TryReset ( ) : bool

This is called when we want to reset the state of the SA after an equivalent time of two timeouts has occurred.

VerifyRequest ( MemBlock hash ) : bool

Verifies the hash with the DHEWithCertificateHash.

VerifyResponse ( MemBlock hash ) : bool

Verifies the hash to the DHEWithCertificateAndCAsOutHash.

보호된 메소드들

메소드 설명
HandleIncoming ( MemBlock data, MemBlock &app_data ) : bool

All incoming data filters through here.

HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool

All outgoing data filters through here.

UpdateSH ( object o, EventArgs ea ) : void

This method listens for the SH to request an update and passes the message to the RequestUpdate event.

메소드 상세

Close() 공개 메소드

This closes the SA and cleans up its state.
public Close ( string reason ) : bool
reason string
리턴 bool

Enable() 공개 메소드

Enables the SA if it has been properly setup.
public Enable ( ) : void
리턴 void

HandleIncoming() 보호된 메소드

All incoming data filters through here.
protected HandleIncoming ( MemBlock data, MemBlock &app_data ) : bool
data MemBlock
app_data MemBlock
리턴 bool

HandleOutgoing() 보호된 메소드

All outgoing data filters through here.
protected HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool
app_data ICopyable
data ICopyable
리턴 bool

PeerSecAssociation() 공개 메소드

public PeerSecAssociation ( ISender sender, Brunet.CertificateHandler ch, int spi ) : Brunet
sender ISender
ch Brunet.CertificateHandler
spi int
리턴 Brunet

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : bool
리턴 bool

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

TryReset() 공개 메소드

This is called when we want to reset the state of the SA after an equivalent time of two timeouts has occurred.
public TryReset ( ) : bool
리턴 bool

UpdateSH() 보호된 메소드

This method listens for the SH to request an update and passes the message to the RequestUpdate event.
protected UpdateSH ( object o, EventArgs ea ) : void
o object
ea System.EventArgs
리턴 void

VerifyRequest() 공개 메소드

Verifies the hash with the DHEWithCertificateHash.
public VerifyRequest ( MemBlock hash ) : bool
hash MemBlock
리턴 bool

VerifyResponse() 공개 메소드

Verifies the hash to the DHEWithCertificateAndCAsOutHash.
public VerifyResponse ( MemBlock hash ) : bool
hash MemBlock
리턴 bool

프로퍼티 상세

DHEWithCertificateAndCAsInHash 공개적으로 프로퍼티

public WriteOnceIdempotent DHEWithCertificateAndCAsInHash
리턴 WriteOnceIdempotent

DHEWithCertificateAndCAsOutHash 공개적으로 프로퍼티

public WriteOnceIdempotent DHEWithCertificateAndCAsOutHash
리턴 WriteOnceIdempotent

DHEWithCertificateHash 공개적으로 프로퍼티

public WriteOnceIdempotent DHEWithCertificateHash
리턴 WriteOnceIdempotent

RDHE 공개적으로 프로퍼티

Remote half of the DHE
public WriteOnceIdempotent RDHE
리턴 WriteOnceIdempotent

RemoteCookie 공개적으로 프로퍼티

public WriteOnceIdempotent RemoteCookie
리턴 WriteOnceIdempotent

TIMEOUT 공개적으로 프로퍼티

public int TIMEOUT
리턴 int

_active 보호되어 있는 프로퍼티

protected bool _active
리턴 bool

_called_enable 보호되어 있는 프로퍼티

protected int _called_enable
리턴 int

_called_start 보호되어 있는 프로퍼티

protected int _called_start
리턴 int

_current_epoch 보호되어 있는 프로퍼티

protected int _current_epoch
리턴 int

_current_sh 보호되어 있는 프로퍼티

protected SecurityHandler,Brunet _current_sh
리턴 Brunet.SecurityHandler

_dh 보호되어 있는 프로퍼티

protected DiffieHellman,Mono.Security.Cryptography _dh
리턴 Mono.Security.Cryptography.DiffieHellman

_hash_verified 보호되어 있는 프로퍼티

protected bool _hash_verified
리턴 bool

_last_called_request_update 보호되어 있는 프로퍼티

protected DateTime,System _last_called_request_update
리턴 System.DateTime

_last_epoch 보호되어 있는 프로퍼티

protected int _last_epoch
리턴 int

_last_update 보호되어 있는 프로퍼티

protected DateTime,System _last_update
리턴 System.DateTime

_ldhe 보호되어 있는 프로퍼티

protected byte[] _ldhe
리턴 byte[]

_local_cert 보호되어 있는 프로퍼티

protected WriteOnceX509 _local_cert
리턴 WriteOnceX509

_remote_cert 보호되어 있는 프로퍼티

protected WriteOnceX509 _remote_cert
리턴 WriteOnceX509

_spi 보호되어 있는 프로퍼티

protected int _spi
리턴 int