Loading TOC...

sec.credentialSetSigning

sec.credentialSetSigning(
   $credential-name as String,
   $signing as Boolean
) as null

Summary

This function updates the signing flag for the specified credential.

Parameters
$credential-name The name of the credential.
$signing The new boolean value for the signing flag.

Required Privileges

http://marklogic.com/xdmp/privileges/credential-set-signing

Usage Notes

This function must be executed against the security database.

Example



xquery version "1.0-ml"; 
 
import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";
 
sec:credential-set-signing("my-secure-credential", fn:false()) 
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.