Loading TOC...

pki:template-get-key-type

pki:template-get-key-type(
   $template as element(pki:template)
) as xs:string

Summary

This function returns the key type for the specified certificate template.

Parameters
$template The certificate template from which to get the key type.

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";;

  for $tid in pki:get-template-ids()     
     return  pki:template-get-key-type(pki:get-template($tid))

  (: Returns the key types of the certificate templates. :)
  

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