C# Class Goedel.Mesh.SignedPersonalProfile

Personal profile signed with a valid administration key
Afficher le fichier Open project: hallambaker/Mathematical-Mesh Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

From() public static méthode

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

From() public static méthode

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

FromFile() public static méthode

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
Résultat SignedPersonalProfile

FromTagged() public static méthode

Deserialize a tagged stream
public static FromTagged ( JSONReader JSONReader ) : SignedPersonalProfile
JSONReader JSONReader The input stream
Résultat SignedPersonalProfile

FromTagged() public static méthode

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

FromTagged() public static méthode

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

Serialize() public méthode

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.
Résultat void

SerializeX() public méthode

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.
Résultat void

SignedPersonalProfile() public méthode

Default Constructor
public SignedPersonalProfile ( ) : System
Résultat System

SignedPersonalProfile() public méthode

Initialize class from JSONReader stream.
public SignedPersonalProfile ( JSONReader JSONReader ) : System
JSONReader JSONReader Input stream
Résultat System

SignedPersonalProfile() public méthode

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
Résultat System

SignedPersonalProfile() public méthode

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

Tag() public méthode

Tag identifying this class.
public Tag ( ) : string
Résultat string