nsmcp::FileCredentials method revoke (public)

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

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

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.
Source code:
ns_mutex lock ${:mutex}
try {
    if {![nsv_exists ${:store} $name]} {
        error "unknown loaded credential name"
    }
    ${:authenticator} revoke [dict get [nsv_get ${:store} $name] digest]
} finally {
    ns_mutex unlock ${:mutex}
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: