Class SecurityToken
From TrainzOnline
(Difference between revisions)
Line 1: | Line 1: | ||
[[TrainzScript Library Reference|API Hierarchy]] | [[TrainzScript Library Reference|API Hierarchy]] | ||
*[[Class GSObject]] | *[[Class GSObject]] | ||
− | **[[Class | + | **[[Class SecurityToken]] |
*Used as a security pass or key, to restrict access to certain functions/functionality. | *Used as a security pass or key, to restrict access to certain functions/functionality. | ||
− | *A SecurityToken can be issued and validated by any [[Class TrainzGameObject]]. | + | *A SecurityToken can be issued and validated by any [[Class TrainzGameObject|TrainzGameObject]]. |
Latest revision as of 12:39, 26 February 2024
- Class GSObject
- Class SecurityToken
- Used as a security pass or key, to restrict access to certain functions/functionality.
- A SecurityToken can be issued and validated by any TrainzGameObject.
[edit] Methods
[edit] IsOwnerLocallyModified
public native bool IsOwnerLocallyModified(void)
- Parameters
- None
- Returned Value
- Whether the asset the issuing script belongs to is locally modified.
- Syntax;
if (token.IsOwnerLocallyModified()) return; // Reject the token
- Notes
- Can be used to reject tokens where the security may have been compromised by local edits.