12#include <com/sun/star/security/CertificateValidity.hpp>
13#include <com/sun/star/security/DocumentSignatureInformation.hpp>
22 bool bCertValid =
true;
24 bool bCompleteSignature =
true;
25 if (!aSigInfo.hasElements())
29 for (
const auto& rInfo : aSigInfo)
33 sal_Int32 nCertStat = rInfo.CertificateStatus;
34 bCertValid = nCertStat == security::CertificateValidity::VALID;
37 if (!rInfo.SignatureIsValid)
42 bCompleteSignature &= !rInfo.PartialDocumentSignature;
SignatureState getSignatureState(const uno::Sequence< security::DocumentSignatureInformation > &aSigInfo)
@ NOTVALIDATED_PARTIAL_OK
Certificate could not be validated and the document is only partially signed.