Loading TOC...

MarkLogic 10 Product Documentation
xdmp:credential

xdmp:credential(
   $id as xs:unsignedLong
) as element(sec:credential)

Summary

Returns the credential

Parameters
id The credential id.

Example

xdmp:credential(xdmp:credential-id("my-cred"))
=> <sec:credential>
     <sec:credential-id>92837172832323</sec:id>
     <sec:credential-name>acme</sec:name>
     <sec:credential-description>ACME Intraweb</sec:descriptions>
     <sec:credential-username>admin</sec:username>
     <sec:credential-password>...encrypted password...</sec:password>
     <sec:credential-certificate>
       ... PEM encoded certificate ...
     </sec:credential-certificate>
     <sec:credential-private-key>
       ... encrypted private key ...
     </sec:credential-private-key>
     <sec:credential-targets>
       <sec:credential-target>
       </sec:credential-target>
     </sec:credential-targets>
     <sec:credential-signing>false</sec:credential-signing>
     <sec:credential-permissions>
       <sec:permission>
         <sec:capability>read</sec:capability>
         <sec:role-id>8272371823823</sec:role-id>
       </sec:permission>
     </sec:credential-permissions>
   </sec:credential>

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