C# Класс Goedel.Mesh.SignedDeviceProfile

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DeserializeToken ( JSONReader JSONReader, string Tag ) : void

Having read a tag, process the corresponding value data.

FindSignatureKey ( List Devices, string UDF ) : SignedDeviceProfile

Find a device profile with the specified signing key from a list.

From ( byte _Data ) : SignedDeviceProfile

Create a new instance from untagged byte input. i.e. {... data ... }

From ( string _Input ) : SignedDeviceProfile

Create a new instance from untagged string input. i.e. {... data ... }

FromFile ( string UDF, string FileName ) : SignedDeviceProfile

Search for the specified profile on the local machine.

FromTagged ( JSONReader JSONReader ) : SignedDeviceProfile

Deserialize a tagged stream

FromTagged ( byte _Data ) : SignedDeviceProfile

Create a new instance from tagged byte input. i.e. { "SignedDeviceProfile" : {... data ... } }

FromTagged ( string _Input ) : SignedDeviceProfile

Create a new instance from tagged string input. i.e. { "SignedDeviceProfile" : {... data ... } }

Serialize ( Writer Writer, bool wrap, bool &first ) : void

Serialize this object to the specified output stream.

SerializeX ( Writer _Writer, bool _wrap, bool &_first ) : void

Serialize this object to the specified output stream. Unlike the Serlialize() method, this method is not inherited from the parent class allowing a specific version of the method to be called.

Sign ( DeviceProfile Data ) : void

Sign the device profile.

SignedDeviceProfile ( ) : System

Default Constructor

SignedDeviceProfile ( DeviceProfile Data ) : System

Construct a signed profile from a device profile.

SignedDeviceProfile ( JSONReader JSONReader ) : System

Initialize class from JSONReader stream.

SignedDeviceProfile ( string _String ) : System

Initialize class from a JSON encoded class.

SignedDeviceProfile ( string Name, string Description ) : System

Create a new device profile and persist it in the registry as the default profile.

Tag ( ) : string

Tag identifying this class.

Unpack ( ) : DeviceProfile

Deserialize the signed data.

UnpackAndVerify ( ) : DeviceProfile

Unpack the signed device profile data and verify it for consistency. Check the signature.

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

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

Having read a tag, process the corresponding value data.
public DeserializeToken ( JSONReader JSONReader, string Tag ) : void
JSONReader JSONReader The input stream
Tag string The tag
Результат void

FindSignatureKey() публичный статический Метод

Find a device profile with the specified signing key from a list.
public static FindSignatureKey ( List Devices, string UDF ) : SignedDeviceProfile
Devices List The list of devices to search.
UDF string The identifier of the key to find.
Результат SignedDeviceProfile

From() публичный статический Метод

Create a new instance from untagged byte input. i.e. {... data ... }
public static From ( byte _Data ) : SignedDeviceProfile
_Data byte The input data.
Результат SignedDeviceProfile

From() публичный статический Метод

Create a new instance from untagged string input. i.e. {... data ... }
public static From ( string _Input ) : SignedDeviceProfile
_Input string The input data.
Результат SignedDeviceProfile

FromFile() публичный статический Метод

Search for the specified profile on the local machine.
public static FromFile ( string UDF, string FileName ) : SignedDeviceProfile
UDF string Fingerprint of the profile to find.
FileName string The name of the file
Результат SignedDeviceProfile

FromTagged() публичный статический Метод

Deserialize a tagged stream
public static FromTagged ( JSONReader JSONReader ) : SignedDeviceProfile
JSONReader JSONReader The input stream
Результат SignedDeviceProfile

FromTagged() публичный статический Метод

Create a new instance from tagged byte input. i.e. { "SignedDeviceProfile" : {... data ... } }
public static FromTagged ( byte _Data ) : SignedDeviceProfile
_Data byte The input data.
Результат SignedDeviceProfile

FromTagged() публичный статический Метод

Create a new instance from tagged string input. i.e. { "SignedDeviceProfile" : {... data ... } }
public static FromTagged ( string _Input ) : SignedDeviceProfile
_Input string The input data.
Результат SignedDeviceProfile

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

Serialize this object to the specified output stream.
public Serialize ( Writer Writer, bool wrap, bool &first ) : void
Writer Writer Output stream
wrap bool If true, output is wrapped with object /// start and end sequences '{ ... }'.
first bool If true, item is the first entry in a list.
Результат void

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

Serialize this object to the specified output stream. Unlike the Serlialize() method, this method is not inherited from the parent class allowing a specific version of the method to be called.
public SerializeX ( Writer _Writer, bool _wrap, bool &_first ) : void
_Writer Writer Output stream
_wrap bool If true, output is wrapped with object /// start and end sequences '{ ... }'.
_first bool If true, item is the first entry in a list.
Результат void

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

Sign the device profile.
public Sign ( DeviceProfile Data ) : void
Data DeviceProfile The device profile to sign.
Результат void

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

Default Constructor
public SignedDeviceProfile ( ) : System
Результат System

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

Construct a signed profile from a device profile.
public SignedDeviceProfile ( DeviceProfile Data ) : System
Data DeviceProfile The device profile to sign.
Результат System

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

Initialize class from JSONReader stream.
public SignedDeviceProfile ( JSONReader JSONReader ) : System
JSONReader JSONReader Input stream
Результат System

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

Initialize class from a JSON encoded class.
public SignedDeviceProfile ( string _String ) : System
_String string Input string
Результат System

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

Create a new device profile and persist it in the registry as the default profile.
public SignedDeviceProfile ( string Name, string Description ) : System
Name string Name of the device
Description string Description of the device.
Результат System

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

Tag identifying this class.
public Tag ( ) : string
Результат string

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

Deserialize the signed data.
public Unpack ( ) : DeviceProfile
Результат DeviceProfile

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

Unpack the signed device profile data and verify it for consistency. Check the signature.
public UnpackAndVerify ( ) : DeviceProfile
Результат DeviceProfile