SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › security

Package security

This package contains 7 source unit(s) defining 7 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

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).

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
PHASE_OFFstatic final int PHASE_OFF = 0No description in source.
PHASE_BOOTINGstatic final int PHASE_BOOTING = 1No description in source.
PHASE_INITIALIZINGstatic final int PHASE_INITIALIZING = 2No description in source.
PHASE_STARTEDstatic final int PHASE_STARTED = 3No description in source.
PHASE_READYstatic final int PHASE_READY = 4No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
Security2public Security2()No description in source.
dateTimeString dateTime()Date and time as JSON from the VM clock (timeJson).
dateTimeHttpString dateTimeHttp()Date and time as an HTTP date string.
utcMillisint utcMillis()UTC milliseconds since the epoch.
specsheetString specsheet()The specsheet reference: name, and where it can be read (none if unknown).
onBootvoid onBoot(Any vmReference)The VM boots: Security2 is placed above it in colocated memory.
onInitvoid onInit()The VM initializes. 2 = initializing.
onStartvoid onStart()The VM starts. 3 = started.
onReadyvoid onReady()The VM is fully initialized. 4 = ready. Lineage references now point to the VM.
bootSecurity2 boot(Any vmReference)The VM boot sequence: place above the VM, then init, start, ready. Returns this.
isReadyboolean isReady()No description in source.
lineageTargetAny 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.
currentPhaseint 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLCredential #sleela 2.5 (lib/security/SLCredential.sleela)

SLCredential class

Defines the SLeeLa standard-library type SLCredential used within the security library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLHash #sleela 2.5 (lib/security/SLHash.sleela)

SLHash class

Defines the SLeeLa standard-library type SLHash used within the security library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLPermission #sleela 2.5 (lib/security/SLPermission.sleela)

SLPermission class

Defines the SLeeLa standard-library type SLPermission used within the security library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLRandom #sleela 2.5 (lib/security/SLRandom.sleela)

SLRandom class

Defines the SLeeLa standard-library type SLRandom used within the security library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLSecureBuffer #sleela 2.5 (lib/security/SLSecureBuffer.sleela)

SLSecureBuffer class

Defines the SLeeLa standard-library type SLSecureBuffer used within the security library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.