Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec:uri-credential-target

sec:uri-credential-target(
   $uri-pattern as xs:string,
   $authentication as xs:string
) as element(sec:credential-target)

Summary

This function generates a sec:credential-target element, for use with sec:create-credential.

Parameters
uri-pattern The URI pattern to match.
authentication The authentication type (for example, "digest").

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:uri-credential-target("my-pattern", "digest")      
    

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