C# Class Brunet.Security.Protocol.ProtocolSecurityOverlord

Very thin wrapper used to support AHSenders. This class is thread-safe.
Inheritance: Brunet.Security.SecurityOverlord, IRpcHandler
显示文件 Open project: johnynek/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
GetSecureSender ( Address target ) : SecurityAssociation
HandleRpc ( ISender caller, string method, IList args, object rs ) : void
ProtocolSecurityOverlord ( Node node, RSACryptoServiceProvider rsa, ReqrepManager rrman, CertificateHandler ch ) : Brunet.Security

Protected Methods

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

Removes the specified SA from our database.

Verify ( SecurityAssociation sa ) : bool

Overridden because we know the Brunet address.

Method Details

CreateSecurityAssociation() protected method

protected CreateSecurityAssociation ( ISender sender, int spi ) : SecurityAssociation
sender ISender
spi int
return Brunet.Security.SecurityAssociation

GetSecureSender() public method

public GetSecureSender ( Address target ) : SecurityAssociation
target Address
return Brunet.Security.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

ProtocolSecurityOverlord() public method

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

RemoveSA() protected method

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

Verify() protected method

Overridden because we know the Brunet address.
protected Verify ( SecurityAssociation sa ) : bool
sa Brunet.Security.SecurityAssociation
return bool

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