MarkLogic 9 Product Documentation
sec:credential-set-certificate

sec:credential-set-certificate(
   $credential-name as xs:string,
   $certificate as xs:string?,
   $private-key as xs:string?
) as empty-sequence()

Summary

This function updates the certificate for the credential. The private key is set at the same time because the two must be matched and cannot independently change.

Parameters
credential-name The name of the credential.
certificate The new certificate, if any.
private-key The private key for $certificate.

Required Privileges

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

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-certificate("my-secure-credential", "newcert", "newkey")
(: needs real cert and key :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy