Package security
Security2 #sleela 3.0 (lib/security/Security2.sleela)
Security2 class
Security2 sits above the VM in colocated memory. It is placed when the VM boots and follows the VM through init and start. Until the VM has fully initialized, the Sleela.home lineage references (parent, child, parents) point to Security2 instead of the VM (SLEELA.syntax section 42.6). Phases are small integers: 0 = off, 1 = booting, 2 = initializing, 3 = started, 4 = ready (fully initialized).
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PHASE_OFF | static final int PHASE_OFF = 0 | No description in source. |
PHASE_BOOTING | static final int PHASE_BOOTING = 1 | No description in source. |
PHASE_INITIALIZING | static final int PHASE_INITIALIZING = 2 | No description in source. |
PHASE_STARTED | static final int PHASE_STARTED = 3 | No description in source. |
PHASE_READY | static final int PHASE_READY = 4 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
Security2 | public Security2() | No description in source. |
dateTime | String dateTime() | Date and time as JSON from the VM clock (timeJson). |
dateTimeHttp | String dateTimeHttp() | Date and time as an HTTP date string. |
utcMillis | int utcMillis() | UTC milliseconds since the epoch. |
specsheet | String specsheet() | The specsheet reference: name, and where it can be read (none if unknown). |
onBoot | void onBoot(Any vmReference) | The VM boots: Security2 is placed above it in colocated memory. |
onInit | void onInit() | The VM initializes. 2 = initializing. |
onStart | void onStart() | The VM starts. 3 = started. |
onReady | void onReady() | The VM is fully initialized. 4 = ready. Lineage references now point to the VM. |
boot | Security2 boot(Any vmReference) | The VM boot sequence: place above the VM, then init, start, ready. Returns this. |
isReady | boolean isReady() | No description in source. |
lineageTarget | Any lineageTarget() | What Sleela.home.parent, child and parents resolve to for the VM end. Before the VM is fully initialized that is Security2 itself, afterwards the VM. |
currentPhase | int currentPhase() | No description in source. |
SLCapability #sleela 2.5 (lib/security/SLCapability.sleela)
SLCapability class
Defines the SLeeLa standard-library type SLCapability used within the security library family.
SLCredential #sleela 2.5 (lib/security/SLCredential.sleela)
SLCredential class
Defines the SLeeLa standard-library type SLCredential used within the security library family.
SLHash #sleela 2.5 (lib/security/SLHash.sleela)
SLHash class
Defines the SLeeLa standard-library type SLHash used within the security library family.
SLPermission #sleela 2.5 (lib/security/SLPermission.sleela)
SLPermission class
Defines the SLeeLa standard-library type SLPermission used within the security library family.
SLRandom #sleela 2.5 (lib/security/SLRandom.sleela)
SLRandom class
Defines the SLeeLa standard-library type SLRandom used within the security library family.
SLSecureBuffer #sleela 2.5 (lib/security/SLSecureBuffer.sleela)
SLSecureBuffer class
Defines the SLeeLa standard-library type SLSecureBuffer used within the security library family.