C# Class Brunet.Security.PeerSec.Symphony.SymphonySecurityOverlord

Very thin wrapper used to support AHSenders. This class is thread-safe.
Inheritance: PeerSecOverlord, IRpcHandler
显示文件 Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_address_to_sa SecurityAssociation>.Dictionary
_node Node
_sa_to_address Address>.Dictionary

Public Methods

Method Description
CalculateCookie ( object o ) : MemBlock
CheckForSecureSender ( Address target ) : SecurityAssociation
ContainsSender ( Address target ) : bool
GetAddress ( SecurityAssociation sa ) : Address
GetSecureSender ( Address target ) : SecurityAssociation
HandleRpc ( ISender caller, string method, IList args, object rs ) : void
SymphonySecurityOverlord ( Node node, RSACryptoServiceProvider rsa, CertificateHandler ch, ReqrepManager rrman ) : Brunet.Messaging

Protected Methods

Method Description
CreateSecurityAssociation ( ISender sender, int spi, bool start ) : PeerSecAssociation
RemoveSA ( SecurityAssociation sa ) : void

Removes the specified SA from our database.

Method Details

CalculateCookie() public method

public CalculateCookie ( object o ) : MemBlock
o object
return Brunet.Util.MemBlock

CheckForSecureSender() public method

public CheckForSecureSender ( Address target ) : SecurityAssociation
target Address
return SecurityAssociation

ContainsSender() public method

public ContainsSender ( Address target ) : bool
target Address
return bool

CreateSecurityAssociation() protected method

protected CreateSecurityAssociation ( ISender sender, int spi, bool start ) : PeerSecAssociation
sender ISender
spi int
start bool
return PeerSecAssociation

GetAddress() public method

public GetAddress ( SecurityAssociation sa ) : Address
sa SecurityAssociation
return Address

GetSecureSender() public method

public GetSecureSender ( Address target ) : SecurityAssociation
target Address
return SecurityAssociation

HandleRpc() public method

public HandleRpc ( ISender caller, string method, IList args, object rs ) : void
caller ISender
method string
args IList
rs object
return void

RemoveSA() protected method

Removes the specified SA from our database.
protected RemoveSA ( SecurityAssociation sa ) : void
sa SecurityAssociation
return void

SymphonySecurityOverlord() public method

public SymphonySecurityOverlord ( Node node, RSACryptoServiceProvider rsa, CertificateHandler ch, ReqrepManager rrman ) : Brunet.Messaging
node Node
rsa System.Security.Cryptography.RSACryptoServiceProvider
ch CertificateHandler
rrman Brunet.Messaging.ReqrepManager
return Brunet.Messaging

Property Details

_address_to_sa protected_oe property

protected Dictionary _address_to_sa
return SecurityAssociation>.Dictionary

_node protected_oe property

protected Node _node
return Node

_sa_to_address protected_oe property

protected Dictionary _sa_to_address
return Address>.Dictionary