sec.getCredential( credential-name as String ) as element(sec.credential)
Gets a credential.
Parameters | |
---|---|
credential-name | The name of the credential to get. |
http://marklogic.com/xdmp/privileges/get-credential
This function must be executed against the security database.
const sec = require('/MarkLogic/security.xqy'); sec.getCredential("my-secure-credential")