sec:resecure-credentials() as empty-sequence()
This function re-encrypts credentials, if necessary.
xquery version "1.0-ml"; import module namespace sec = "http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:resecure-credentials()