sec.uriCredentialTarget

sec.uriCredentialTarget(
   uri-pattern as String,
   authentication as String
) as element(sec.credentialTarget)

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


    const sec = require('/MarkLogic/security.xqy');
    
    sec.uriCredentialTarget("my-pattern", "digest");
      
Powered by MarkLogic Server | Terms of Use | Privacy Policy