C# Class Goedel.Mesh.SignedDeviceProfile

ファイルを表示 Open project: hallambaker/Mathematical-Mesh Class Usage Examples

Public Methods

Method Description
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.

Method Details

DeserializeToken() public method

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
return void

FindSignatureKey() public static method

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.
return SignedDeviceProfile

From() public static method

Create a new instance from untagged byte input. i.e. {... data ... }
public static From ( byte _Data ) : SignedDeviceProfile
_Data byte The input data.
return SignedDeviceProfile

From() public static method

Create a new instance from untagged string input. i.e. {... data ... }
public static From ( string _Input ) : SignedDeviceProfile
_Input string The input data.
return SignedDeviceProfile

FromFile() public static method

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
return SignedDeviceProfile

FromTagged() public static method

Deserialize a tagged stream
public static FromTagged ( JSONReader JSONReader ) : SignedDeviceProfile
JSONReader JSONReader The input stream
return SignedDeviceProfile

FromTagged() public static method

Create a new instance from tagged byte input. i.e. { "SignedDeviceProfile" : {... data ... } }
public static FromTagged ( byte _Data ) : SignedDeviceProfile
_Data byte The input data.
return SignedDeviceProfile

FromTagged() public static method

Create a new instance from tagged string input. i.e. { "SignedDeviceProfile" : {... data ... } }
public static FromTagged ( string _Input ) : SignedDeviceProfile
_Input string The input data.
return SignedDeviceProfile

Serialize() public method

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.
return void

SerializeX() public method

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.
return void

Sign() public method

Sign the device profile.
public Sign ( DeviceProfile Data ) : void
Data DeviceProfile The device profile to sign.
return void

SignedDeviceProfile() public method

Default Constructor
public SignedDeviceProfile ( ) : System
return System

SignedDeviceProfile() public method

Construct a signed profile from a device profile.
public SignedDeviceProfile ( DeviceProfile Data ) : System
Data DeviceProfile The device profile to sign.
return System

SignedDeviceProfile() public method

Initialize class from JSONReader stream.
public SignedDeviceProfile ( JSONReader JSONReader ) : System
JSONReader JSONReader Input stream
return System

SignedDeviceProfile() public method

Initialize class from a JSON encoded class.
public SignedDeviceProfile ( string _String ) : System
_String string Input string
return System

SignedDeviceProfile() public method

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.
return System

Tag() public method

Tag identifying this class.
public Tag ( ) : string
return string

Unpack() public method

Deserialize the signed data.
public Unpack ( ) : DeviceProfile
return DeviceProfile

UnpackAndVerify() public method

Unpack the signed device profile data and verify it for consistency. Check the signature.
public UnpackAndVerify ( ) : DeviceProfile
return DeviceProfile