::nsmcp::Object ::nsmcp::Object dict getdef ::nx::Object ::nx::Object ::nsmcp::Object->::nx::Object ::nsmcp::FileCredentials ::nsmcp::FileCredentials describe describeUnlocked init load loadAll names prepare publish revoke ::nsmcp::FileCredentials->::nsmcp::Object

Class ::nsmcp::FileCredentials

::nsmcp::FileCredentials[i] create ... \
           [ -authenticator:required authenticator:required ] \
           [ -mutex mutex ] \
           [ -section:required section:required ] \
           [ -store:required store:required ]

Defined in /usr/local/ns/tcl/nsmcp/credentials.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsmcp::Object[i]

Methods (to be applied on instances)

  • describe (scripted, public)

     <instance of nsmcp::FileCredentials[i]> describe

    Describe loaded credential bindings without revealing tokens. Read the credential metadata under the instance mutex.

    Returns:
    The credential metadata returned by the unlocked descriptor helper.

    Testcases:
    No testcase defined.
  • load (scripted, public)

     <instance of nsmcp::FileCredentials[i]> load name

    Reload one configured credential file. Validate and install the selected credential while serializing updates with the instance mutex.

    Parameters:
    name (required)
    Name of the configured or registered item to resolve.
    Returns:
    The loaded credential's metadata dictionary.

    Testcases:
    No testcase defined.
  • loadAll (scripted, public)

     <instance of nsmcp::FileCredentials[i]> loadAll

    Load all configured credential files as one validated update. Stage every credential under the mutex before changing active authenticator bindings.

    Returns:
    Credential metadata without bearer-token contents.

    Testcases:
    No testcase defined.
  • revoke (scripted, public)

     <instance of nsmcp::FileCredentials[i]> revoke name

    Revoke the active binding for a loaded credential. Resolve the configured name to its stored digest and revoke that authenticator entry under the mutex.

    Parameters:
    name (required)
    Name of the configured or registered item to resolve.
    Returns:
    The authenticator's revocation result; unknown credentials raise an error.

    Testcases:
    No testcase defined.