MarkLogic 9 Product Documentation
pki:template-get-key-options

pki:template-get-key-options(
   $template as element(pki:template)
) as element(pki:key-options)

Summary

This function returns all of the template key options set in the specified certificate template.

Parameters
template The certificate template from which to get the key options.

Example

    (: execute this against the security database :)
    xquery version "1.0-ml"; 
    import module namespace pki = "http://marklogic.com/xdmp/pki" 
         at "/MarkLogic/pki.xqy";

    pki:template-get-key-options(pki:get-template-by-name("test"))

    (: Return all of the key options in the certificate template, named "test." :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy