Uno/SDK: Programmatically sign ODTs/PDFs

(How) Can I add digital signatures to exported PDFs using the Libreoffice SDK/Uno?