C# Class TSystems.RELOAD.Transport.SecurityBlock

The third part of a RELOAD message is the security block. The security block is represented by a SecurityBlock structure see base -19 p.52
Mostra file Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Methods

Method Description
Dump ( BinaryWriter writer ) : UInt16

Dumps the security block to byte stream.

FromReader ( BinaryReader reader, long reloadMsgSize ) : SecurityBlock

Deserializes the security block from bytes.

SecurityBlock ( ReloadConfig rc ) : System

Default constructor. Use it as receiver of a request.

SecurityBlock ( ReloadConfig rc, SignerIdentity myIdentity ) : System

Creates a new Security Block for ordinary messages

SecurityBlock ( ReloadConfig rc, SignerIdentity myIdentity, List certs ) : System

Creates a new Security Block for data transporting messages

SignMessage ( UInt32 overlay, string transId, RELOAD_MessageBody body ) : void

This method signs a message content contained within the stream.

Method Details

Dump() public method

Dumps the security block to byte stream.
public Dump ( BinaryWriter writer ) : UInt16
writer System.IO.BinaryWriter
return System.UInt16

FromReader() public method

Deserializes the security block from bytes.
public FromReader ( BinaryReader reader, long reloadMsgSize ) : SecurityBlock
reader System.IO.BinaryReader
reloadMsgSize long
return SecurityBlock

SecurityBlock() public method

Default constructor. Use it as receiver of a request.
public SecurityBlock ( ReloadConfig rc ) : System
rc ReloadConfig
return System

SecurityBlock() public method

Creates a new Security Block for ordinary messages
public SecurityBlock ( ReloadConfig rc, SignerIdentity myIdentity ) : System
rc ReloadConfig
myIdentity TSystems.RELOAD.Topology.SignerIdentity
return System

SecurityBlock() public method

Creates a new Security Block for data transporting messages
public SecurityBlock ( ReloadConfig rc, SignerIdentity myIdentity, List certs ) : System
rc ReloadConfig
myIdentity TSystems.RELOAD.Topology.SignerIdentity
certs List X.509 PKCs for validation data
return System

SignMessage() public method

This method signs a message content contained within the stream.
public SignMessage ( UInt32 overlay, string transId, RELOAD_MessageBody body ) : void
overlay System.UInt32
transId string The transaction Id used for signing
body RELOAD_MessageBody
return void