C# Class Goedel.Mesh.SignedPersonalProfile

Personal profile signed with a valid administration key
ファイルを表示 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.

From ( byte _Data ) : SignedPersonalProfile

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

From ( string _Input ) : SignedPersonalProfile

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

FromFile ( string UDF, string FileName ) : SignedPersonalProfile

Search for the specified profile on the local machine.

FromTagged ( JSONReader JSONReader ) : SignedPersonalProfile

Deserialize a tagged stream

FromTagged ( byte _Data ) : SignedPersonalProfile

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

FromTagged ( string _Input ) : SignedPersonalProfile

Create a new instance from tagged string input. i.e. { "SignedPersonalProfile" : {... 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.

SignedPersonalProfile ( ) : System

Default Constructor

SignedPersonalProfile ( JSONReader JSONReader ) : System

Initialize class from JSONReader stream.

SignedPersonalProfile ( PersonalProfile Data ) : System

Create from a current personal profile.

SignedPersonalProfile ( string _String ) : System

Initialize class from a JSON encoded class.

Tag ( ) : string

Tag identifying this class.

Private Methods

Method Description
CheckSignedPOSK ( PersonalProfile Unpacked ) : void
UnpackAndVerify ( ) : PersonalProfile

Unpack the SignedData structure and verify that the components are all valid.

The Personal Master is signed with the PMSK.

The Administration profile is signed with the POSK.

The Personal profile is signed with a valid admin key.

Each signing key matches the specified UDF.

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

From() public static method

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

From() public static method

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

FromFile() public static method

Search for the specified profile on the local machine.
public static FromFile ( string UDF, string FileName ) : SignedPersonalProfile
UDF string Fingerprint of the profile to find.
FileName string The name of the file
return SignedPersonalProfile

FromTagged() public static method

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

FromTagged() public static method

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

FromTagged() public static method

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

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

SignedPersonalProfile() public method

Default Constructor
public SignedPersonalProfile ( ) : System
return System

SignedPersonalProfile() public method

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

SignedPersonalProfile() public method

Create from a current personal profile.
The administration key could not be found.
public SignedPersonalProfile ( PersonalProfile Data ) : System
Data PersonalProfile The current profile to sign
return System

SignedPersonalProfile() public method

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

Tag() public method

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