sec.uriCredentialTarget( uri-pattern as String, authentication as String ) as element(sec.credentialTarget)
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"). |
This function must be executed against the security database.
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")