C# Class Brunet.Security.Transport.SecureEdgeListener

Binds an EdgeListener to the SecurityOverlord and handles the securing of insecure edges. This class is thread-safe.
Inheritance: WrapperEdgeListener
Exibir arquivo Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_edge_to_inbound bool>.Dictionary
_edge_to_sa SecurityAssociation>.Dictionary
_so Brunet.Security.SecurityOverlord

Public Methods

Method Description
SecureEdgeListener ( Brunet.EdgeListener el, Brunet.Security.SecurityOverlord so ) : Brunet

Protected Methods

Method Description
AnnounceSA ( SecurityAssociation sa, SecurityAssociation state ) : void

When a SecurityAssociation changes amongst inactive, active, or closed this gets notified.

HandleEdgeClose ( object edge, EventArgs ea ) : void
RemoveFromDictionary ( Edge edge, SecurityAssociation &sa ) : bool
WrapEdge ( Edge edge ) : void

Makes the SecurityOverlord listen to the edge and instantiates a new SecurityAssociation for the insecure edge. CreateSecurityAssociation is idempotent.

Method Details

AnnounceSA() protected method

When a SecurityAssociation changes amongst inactive, active, or closed this gets notified.
protected AnnounceSA ( SecurityAssociation sa, SecurityAssociation state ) : void
sa SecurityAssociation
state SecurityAssociation
return void

HandleEdgeClose() protected method

protected HandleEdgeClose ( object edge, EventArgs ea ) : void
edge object
ea System.EventArgs
return void

RemoveFromDictionary() protected method

protected RemoveFromDictionary ( Edge edge, SecurityAssociation &sa ) : bool
edge Edge
sa SecurityAssociation
return bool

SecureEdgeListener() public method

public SecureEdgeListener ( Brunet.EdgeListener el, Brunet.Security.SecurityOverlord so ) : Brunet
el Brunet.EdgeListener
so Brunet.Security.SecurityOverlord
return Brunet

WrapEdge() protected method

Makes the SecurityOverlord listen to the edge and instantiates a new SecurityAssociation for the insecure edge. CreateSecurityAssociation is idempotent.
protected WrapEdge ( Edge edge ) : void
edge Edge
return void

Property Details

_edge_to_inbound protected_oe property

protected Dictionary _edge_to_inbound
return bool>.Dictionary

_edge_to_sa protected_oe property

protected Dictionary _edge_to_sa
return SecurityAssociation>.Dictionary

_so protected_oe property

protected SecurityOverlord,Brunet.Security _so
return Brunet.Security.SecurityOverlord