iya-sts
    Preparing search index...

    The editors certificate sign-in's structured settings are drawn with.

    A static utility class; the state of a page's editors is the page's, held by wire()'s closures.

    Index
    DEFAULT_BINDINGS: string[] = DEFAULT_BINDINGS
    EKU_PRESETS: { key: string; oid: string }[] = EKU_PRESETS
    HIGH_AFFINITY: string[] = HIGH_AFFINITY
    KEY_USAGE_NAMES: string[] = KEY_USAGE_NAMES
    LOW_AFFINITY: string[] = LOW_AFFINITY
    POLICY_PRESETS: { key: string; oid: string }[] = POLICY_PRESETS
    STRUCTURED: Record<string, string> = STRUCTURED
    • Adds the certificates of a text to a list, each once.

      Parameters

      • blocks: string[]

        the list

      • text: string

        the text handed in

      Returns any

      { blocks, added }

    • Draws the mapping editor.

      Parameters

      • state: any

        { entries, problem }

      • t: any

        the page's translator

      Returns string

      the editor as HTML

    • The setting's text for the editor's mapping: '' for none.

      Parameters

      • entries: any[]

        the editor's entries

      • Optionalpretty: boolean

        optional; indented

      Returns string

      the text

    • Applies one change to the mapping, returning new entries.

      Parameters

      • entries: any[]

        the entries as they are

      • act: any

        { op, index, field?, value? }: add, remove, text (app, listeners as a comma list, advertised; '' leaves it out)

      Returns any[]

      the entries

    • Applies one change to the listeners, returning new ones.

      Parameters

      • listeners: any[]

        the listeners as they are

      • act: any

        { op, index, field?, value?, row?, delta? }: add, remove, move, text, tls-add, tls-remove, tls-name, tls-value

      Returns any[]

      the listeners

    • Applies one change to the profiles, returning new ones.

      Parameters

      • profiles: any[]

        the profiles as they are

      • act: any

        { op, index, field?, value?, on?, delta? }: add, remove, move, text (id, description), toggle (a value in a list, on), flag (lowAffinity, smartCard), value (a value typed or picked for issuers, extendedKeyUsage, policies)

      Returns any

      { profiles, problem }; problem a catalog key's last part

    • The editor's problem and note, above it.

      Parameters

      • state: any

        { problem, note }

      • t: any

        the page's translator

      Returns string

      the HTML, or ''

    • A checkbox, with no name: the editor's, never the form's.

      Parameters

      • attrs: string

        its data attributes

      • on: boolean

        ticked

      • label: string

        its label, as HTML

      • Optionaldisabled: boolean

        optional

      Returns string

      the HTML

    • Draws a structured setting's control: the editor's place, filled by wire(), and the box under "As JSON" that carries the value.

      Parameters

      • setting: any

        the described setting (key, text, description)

      • id: string

        the id the row's label points at, given to the box

      • Optionalt: any

        the page's translator

      Returns string

      the control as HTML

    • The derived values, each with an Add (or a note that it is held).

      Parameters

      • t: any

        the page's translator

      • user: string

        the person

      • answer: any

        the inspection's answer

      • held: string[]

        the values the person holds

      • Optionalprefix: string

        optional; the console's realm prefix (/realm/<id>), which the Add forms' action carries

      Returns string

      the HTML

    • A value a hash list takes: lower case, no colons or spaces, an optional sha256: in front; '' where it is not 64 hexadecimal digits.

      Parameters

      • value: unknown

        as typed

      Returns string

      the digest, or ''

    • An id inside one editor, unique on a page that draws two editors of a kind (the Listeners page draws listeners.custom twice).

      Parameters

      • state: any

        the editor's state (prefix, its box's id)

      • part: string

        the part's own name

      Returns string

      the id

    • The kind of editor a setting is drawn with, or ''.

      Parameters

      • key: string

        the setting

      Returns string

      profiles, listeners, applications, pems or ''

    • One listener as the JSON the setting holds, by profileJson()'s rule.

      Parameters

      • l: any

        the editor's listener

      Returns any

      the JSON object

    • Draws the listeners editor.

      Parameters

      • state: any

        { listeners, problem }

      • t: any

        the page's translator

      Returns string

      the editor as HTML

    • The setting's text for the editor's listeners: '' for none.

      Parameters

      • listeners: any[]

        the editor's listeners

      • Optionalpretty: boolean

        optional; indented

      Returns string

      the text

    • A new profile, with an id no other profile has.

      Parameters

      • profiles: any[]

        the profiles it joins

      Returns any

      the profile

    • Reads listeners.applications' text.

      Parameters

      • text: string

        the setting's text

      Returns any

      { ok, entries, problem }, each entry { app, listeners, advertised } (advertised null where it was left out)

    • Reads a listener definitions' text (listeners.custom, listeners.realm).

      Parameters

      • text: string

        the setting's text

      Returns any

      { ok, listeners, problem }

    • The certificates of a PEM bundle, each block as it was written.

      Parameters

      • text: string

        the setting's text

      Returns any

      { ok, blocks, problem }

    • Reads certSignIn.profiles' text into the editor's profiles.

      Parameters

      • text: string

        the setting's text

      Returns any

      { ok, profiles, problem }; problem a catalog key's last part where the editor cannot read it

    • Draws a list of certificates.

      Parameters

      • state: any

        { blocks, facts, problem, note }: facts the inspection's certificates, by position, or null while they are read

      • t: any

        the page's translator

      Returns string

      the editor as HTML

    • The setting's text for a list of certificates.

      Parameters

      • blocks: string[]

        the PEM blocks

      Returns string

      the bundle, one block a line apart, or ''

    • The Certificate sign-in sub-tab of a person's Credentials: the values of stsCertificateBinding they hold, each removable, and their certificate handed in to derive the values it is found by.

      Parameters

      • t: any

        the page's translator

      • user: string

        the person

      • values: string[]

        the values they hold

      • write: boolean

        whether the reader may change them

      Returns string

      the HTML

    • The place an editor is drawn into, for a box drawn elsewhere.

      Parameters

      • kind: string

        the editor's kind

      • id: string

        the box's id

      • t: any

        the page's translator

      • Optionalpretty: boolean

        optional; write the box's JSON indented

      Returns string

      the place as HTML

    • One profile as the JSON the setting holds: the members it was read with, in their order, then any it has come to hold.

      Parameters

      • p: any

        the editor's profile

      Returns any

      the JSON object

    • Draws the profiles editor.

      Parameters

      • state: any

        { profiles, anchors, problem, note }: anchors the client truststore's { subject, spkiSha256, ca }, or null while it is read

      • t: any

        the page's translator

      Returns string

      the editor as HTML

    • The setting's text for the editor's profiles: '' for none.

      Parameters

      • profiles: any[]

        the editor's profiles

      • Optionalpretty: boolean

        optional; indented

      Returns string

      the text

    • The text of a chosen file, put in a box.

      Parameters

      • input: any

        the file input

      • box: any

        the box

      Returns void

      nothing

    • A value typed into a tls row, as the JSON it is written as: true and false a boolean, a whole number a number, anything else the text.

      Parameters

      • text: string

        as typed

      Returns any

      the value

    • A list of values, each with a Remove button.

      Parameters

      • values: string[]

        the values

      • act: string

        the button's data-cs-act

      • attrs: string

        the other attributes every button carries

      • labelOf: (v: string) => string

        optional; what to show beside a value

      • t: any

        the page's translator

      Returns string

      the list as HTML, or a note that it is empty

    • Wires every structured setting and person binding editor on the page.

      Parameters

      • env: any

        the runtime's environment (document)

      • t: any

        the page's translator

      • changed: () => void

        called when the reader changes a value

      • api: (method: string, path: string, body?: any) => Promise<any>

        (method, path, body) => Promise<{ status, json }>, the runtime's apiJson()

      • Optionalprefix: string

        optional; the console's realm prefix, for a form drawn after the page (derivedBindings())

      Returns void

      nothing

    • Wires one structured setting's editor to its box.

      Parameters

      • doc: any

        the document

      • place: any

        the editor's place

      • t: any

        the page's translator

      • changed: () => void

        called when the reader changes a value

      • api: any

        the runtime's apiJson()

      • readAnchors: () => Promise<any[]>

        the client truststore, read once per drawing

      Returns void

      nothing

    • Wires a person's Derive button.

      Parameters

      • root: any

        the person's binding editor

      • t: any

        the page's translator

      • api: any

        the runtime's apiJson()

      • Optionalprefix: string

        optional; the console's realm prefix

      Returns void

      nothing