C# Class Brunet.Security.Protocol.ProtocolSecurityOverlord

Very thin wrapper used to support AHSenders. This class is thread-safe.
Inheritance: Brunet.Security.SecurityOverlord, IRpcHandler
Afficher le fichier Open project: johnynek/brunet Class Usage Examples

Protected Properties

Свойство Type Description
_address_to_sa SecurityAssociation>.Dictionary
_node Node
_sa_to_address Address>.Dictionary

Méthodes publiques

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

Méthodes protégées

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

protected CreateSecurityAssociation ( ISender sender, int spi ) : SecurityAssociation
sender ISender
spi int
Résultat Brunet.Security.SecurityAssociation

GetSecureSender() public méthode

public GetSecureSender ( Address target ) : SecurityAssociation
target Address
Résultat Brunet.Security.SecurityAssociation

HandleRpc() public méthode

public HandleRpc ( ISender caller, string method, IList args, object rs ) : void
caller ISender
method string
args IList
rs object
Résultat void

ProtocolSecurityOverlord() public méthode

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
Résultat Brunet.Security

RemoveSA() protected méthode

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

Verify() protected méthode

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

Property Details

_address_to_sa protected_oe property

protected Dictionary _address_to_sa
Résultat SecurityAssociation>.Dictionary

_node protected_oe property

protected Node _node
Résultat Node

_sa_to_address protected_oe property

protected Dictionary _sa_to_address
Résultat Address>.Dictionary