C# Class Goedel.Mesh.ApplicationProfile

Inheritance: Profile
Exibir arquivo Open project: hallambaker/Mathematical-Mesh Class Usage Examples

Protected Properties

Property Type Description
ApplicationProfileEntry ApplicationProfileEntry
PersonalProfile PersonalProfile

Public Methods

Method Description
AddDevice ( SignedDeviceProfile Device ) : void

Add the specified device to the linked personal profile and create any device specific entries in the private profile.

ApplicationProfile ( ) : System

Default Constructor

ApplicationProfile ( JSONReader JSONReader ) : System

Initialize class from JSONReader stream.

ApplicationProfile ( string _String ) : System

Initialize class from a JSON encoded class.

DecryptPrivate ( ) : byte[]

Decrypt the private data portion of the profile.

DeserializeToken ( JSONReader JSONReader, string Tag ) : void

Having read a tag, process the corresponding value data.

EncryptPrivate ( ) : void

Encrypt the private data and create a decryption key for each device.

From ( byte _Data ) : ApplicationProfile

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

From ( string _Input ) : ApplicationProfile

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

FromTagged ( JSONReader JSONReader ) : ApplicationProfile

Deserialize a tagged stream

FromTagged ( byte _Data ) : ApplicationProfile

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

FromTagged ( string _Input ) : ApplicationProfile

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

GetSignatureKey ( ) : KeyPair

Locate a signature key known to this device that is authorized to sign this profile.

Link ( PersonalProfile PersonalProfile ) : void

Connect an application profile read from store to a PersonalProfile object.

Link ( PersonalProfile PersonalProfile, ApplicationProfileEntry ApplicationProfileEntry ) : void

Connect an application profile read from store to a PersonalProfile object.

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.

Tag ( ) : string

Tag identifying this class.

Protected Methods

Method Description
_Initialize ( ) : void

Protected initializer

Method Details

AddDevice() public method

Add the specified device to the linked personal profile and create any device specific entries in the private profile.
public AddDevice ( SignedDeviceProfile Device ) : void
Device SignedDeviceProfile The device to add.
return void

ApplicationProfile() public method

Default Constructor
public ApplicationProfile ( ) : System
return System

ApplicationProfile() public method

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

ApplicationProfile() public method

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

DecryptPrivate() public method

Decrypt the private data portion of the profile.
public DecryptPrivate ( ) : byte[]
return byte[]

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

EncryptPrivate() public method

Encrypt the private data and create a decryption key for each device.
public EncryptPrivate ( ) : void
return void

From() public static method

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

From() public static method

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

FromTagged() public static method

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

FromTagged() public static method

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

FromTagged() public static method

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

GetSignatureKey() public method

Locate a signature key known to this device that is authorized to sign this profile.
public GetSignatureKey ( ) : KeyPair
return Goedel.Cryptography.KeyPair

Link() public method

Connect an application profile read from store to a PersonalProfile object.
public Link ( PersonalProfile PersonalProfile ) : void
PersonalProfile PersonalProfile Personal profile to link
return void

Link() public method

Connect an application profile read from store to a PersonalProfile object.
public Link ( PersonalProfile PersonalProfile, ApplicationProfileEntry ApplicationProfileEntry ) : void
PersonalProfile PersonalProfile Personal profile to link
ApplicationProfileEntry ApplicationProfileEntry Profile entry to link to
return void

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

Tag() public method

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

_Initialize() protected method

Protected initializer
protected _Initialize ( ) : void
return void

Property Details

ApplicationProfileEntry protected_oe property

This application profile's entry in the parent personal profile.
protected ApplicationProfileEntry,Goedel.Mesh ApplicationProfileEntry
return ApplicationProfileEntry

PersonalProfile protected_oe property

The personal profile to which this is attached.
protected PersonalProfile,Goedel.Mesh PersonalProfile
return PersonalProfile