TheScopeManager Methods
The TheScopeManager type exposes the following members.
Methods
Name | Description | |
---|---|---|
GenerateCode |
Generates a friendly code in the format of an EasyScopeID.
|
|
GenerateNewAppDeviceID |
Creates a new DeviceID/NodeID for the current Application Scope
|
|
GenerateNewScopeID |
Generates a new scope Easy Scope ID.
|
|
GetScopeHash |
Gets the 4 digits scope hash.
|
|
GetScrambledScopeID |
Gets scrambled scope id from the current node.
|
|
GetScrambledScopeIDFromEasyID |
This method creates a new scrambled ScopeID from an Easy ScopeID to allow encryption of data against a ScopeID
|
|
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
|
|
IsValidScopeID(String) |
Verify if the given ScrambledScopeID is valid in the current scope
|
|
IsValidScopeID(String, String) |
Verify if the given ScrambledScopeIDs are of the same scope.
|
|
RegisterScopeChanged |
Registers a callback that fires if the scope changed
|
|
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
|
|
SetScopeIDFromEasyID |
Sets the node-scope from an easy id.
|