C# Класс 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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Dump() публичный Метод

Dumps the security block to byte stream.
public Dump ( BinaryWriter writer ) : UInt16
writer System.IO.BinaryWriter
Результат System.UInt16

FromReader() публичный Метод

Deserializes the security block from bytes.
public FromReader ( BinaryReader reader, long reloadMsgSize ) : SecurityBlock
reader System.IO.BinaryReader
reloadMsgSize long
Результат SecurityBlock

SecurityBlock() публичный Метод

Default constructor. Use it as receiver of a request.
public SecurityBlock ( ReloadConfig rc ) : System
rc ReloadConfig
Результат System

SecurityBlock() публичный Метод

Creates a new Security Block for ordinary messages
public SecurityBlock ( ReloadConfig rc, SignerIdentity myIdentity ) : System
rc ReloadConfig
myIdentity TSystems.RELOAD.Topology.SignerIdentity
Результат System

SecurityBlock() публичный Метод

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
Результат System

SignMessage() публичный Метод

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
Результат void