C-DEngine 5.105

TheScopeManager Methods

The TheScopeManager type exposes the following members.

Methods


  Name Description
Public method Static member GenerateCode
Generates a friendly code in the format of an EasyScopeID.
Public method Static member GenerateNewAppDeviceID
Creates a new DeviceID/NodeID for the current Application Scope
Public method Static member GenerateNewScopeID
Generates a new scope Easy Scope ID.
Public method Static member GetScopeHash
Gets the 4 digits scope hash.
Public method Static member GetScrambledScopeID
Gets scrambled scope id from the current node.
Public method Static member GetScrambledScopeIDFromEasyID
This method creates a new scrambled ScopeID from an Easy ScopeID to allow encryption of data against a ScopeID
Public method Static member GetTokenFromScrambledScopeID
In order to tag data with a given ScopeID (Node Realm), this function can be used to get a Hash of the CurrentScopeID (if parameter pSScope is null) This hash is not used for any encryption and a scopeID cannot be recreated from this Hash Function returns a hash-token from an Scrambled Scope ID
Public method Static member IsValidScopeID(String)
Verify if the given ScrambledScopeID is valid in the current scope
Public method Static member IsValidScopeID(String, String)
Verify if the given ScrambledScopeIDs are of the same scope.
Public method Static member RegisterScopeChanged
Registers a callback that fires if the scope changed
Public method Static member SetApplicationID
Sets the main Application ID of the C-DEngine Node Mesh. All nodes communicating with each other have to have the Same Application ID and Scope ID (a.k.a. "Security ID"). The Application ID has be to issued by C-Labs and can only be self-generated if C-Labs has authorized the generation to an OEM ATTENTION: Losing or publishing the Application ID can lead to security issues. Store this ID in a secure store, certificate, USB Key or other secure way. This has been moved here from TheScopeManager as "TheBaseAssets.MySecrets" has to be created before the AppID can be set. This function will create the default cdeSecrets if it was not set before by the Application
Public method Static member SetScopeIDFromEasyID
Sets the node-scope from an easy id.