LibreOffice
LibreOffice 25.2 SDK API Reference
|
Interface for signing and verifying digital signatures in office documents. More...
import"XDocumentDigitalSignatures.idl";
Public Member Functions | |
boolean | signSignatureLine ([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xSignStream, [in] string signatureLineId, [in] ::com::sun::star::security::XCertificate xCertificate, [in] ::com::sun::star::graphic::XGraphic xValidGraphic, [in] ::com::sun::star::graphic::XGraphic xInvalidGraphic, [in] string comment) |
Signs the content of the document including text and pictures using the given XCertificate. More... | |
sequence< com::sun::star::security::DocumentSignatureInformation > | verifyDocumentContentSignatures ([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream) |
checks for digital signatures and their status. More... | |
void | showDocumentContentSignatures ([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream) |
shows the digital signatures of the document content More... | |
string | getDocumentContentSignatureDefaultStreamName () |
allows to get the default stream name for storing of the signature of the document content. More... | |
sequence< com::sun::star::security::DocumentSignatureInformation > | verifyScriptingContentSignatures ([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream) |
checks for digital signatures and their status. More... | |
void | showScriptingContentSignatures ([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream) |
shows the digital signatures of the scripting content More... | |
string | getScriptingContentSignatureDefaultStreamName () |
allows to get the default stream name for storing of the signature of the scripting content. More... | |
void | showCertificate ([in] com::sun::star::security::XCertificate Certificate) |
void | manageTrustedSources () |
manages trusted sources (Authors and paths ) More... | |
boolean | isAuthorTrusted ([in] com::sun::star::security::XCertificate Author) |
boolean | isLocationTrusted ([in] string Location) |
void | addAuthorToTrustedSources ([in] com::sun::star::security::XCertificate Author) |
void | addLocationToTrustedSources ([in] string Location) |
com::sun::star::security::XCertificate | chooseCertificate ([out] string Description) |
This method shows the CertificateChooser dialog, used by document and PDF signing Shows only private certificates. More... | |
com::sun::star::security::XCertificate | chooseSigningCertificate ([out] string Description) |
This is an alias for 'chooseCertificate', shows the CertificateChooser dialog with private certificates. More... | |
com::sun::star::security::XCertificate | selectSigningCertificate ([out] string Description) |
This shows the certificate selection dialog and allows to only select the certificate without actually signing the document. More... | |
com::sun::star::security::XCertificate | selectSigningCertificateWithType ([in] CertificateKind certificateKind, [out] string Description) |
This shows the certificate selection dialog and allows to only select the certificate without actually signing the document. More... | |
sequence< com::sun::star::security::XCertificate > | chooseEncryptionCertificate ([in] CertificateKind certificateKind) |
This method shows the CertificateChooser dialog with all certificates, private and other people's. More... | |
com::sun::star::security::XCertificate | chooseCertificateWithProps ([out] sequence<::com::sun::star::beans::PropertyValue > Properties) |
This method shows the CertificateChooser dialog, used by document and PDF signing Shows only private certificates and returns usage string in addition to description. More... | |
boolean | signDocumentWithCertificate ([in] ::com::sun::star::security::XCertificate xCertificate, [in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xStream) |
Signs the content of the document with the provided certificate. More... | |
void | setParentWindow ([in] ::com::sun::star::awt::XWindow xParentWindow) |
Set parent window to use when showing dialogs. More... | |
boolean | signScriptingContentWithCertificate ([in] ::com::sun::star::security::XCertificate xCertificate, [in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xStream) |
signs the content of the Scripting including macros and basic dialogs with the provided certificate. More... | |
boolean | trustUntrustedCertificate ([in] ::com::sun::star::security::XCertificate xCertificate) |
queries the user if they want to trust an untrusted certificate. More... | |
![]() | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Interface for signing and verifying digital signatures in office documents.
This interface can be used to digitally sign different content in an office document. It can also be used to verify digital signatures.
void addAuthorToTrustedSources | ( | [in] com::sun::star::security::XCertificate | Author | ) |
void addLocationToTrustedSources | ( | [in] string | Location | ) |
com::sun::star::security::XCertificate chooseCertificate | ( | [out] string | Description | ) |
This method shows the CertificateChooser dialog, used by document and PDF signing Shows only private certificates.
com::sun::star::security::XCertificate chooseCertificateWithProps | ( | [out] sequence<::com::sun::star::beans::PropertyValue > | Properties | ) |
This method shows the CertificateChooser dialog, used by document and PDF signing Shows only private certificates and returns usage string in addition to description.
sequence< com::sun::star::security::XCertificate > chooseEncryptionCertificate | ( | [in] CertificateKind | certificateKind | ) |
This method shows the CertificateChooser dialog with all certificates, private and other people's.
Useful when choosing certificate/key for encryption.
certificateKind | com::sun::star::security::CertificateKind ENUM to choose only from certificates of a certain type. CertificateKind_NONE lists all types of certificates for choosing. |
com::sun::star::security::XCertificate chooseSigningCertificate | ( | [out] string | Description | ) |
This is an alias for 'chooseCertificate', shows the CertificateChooser dialog with private certificates.
string getDocumentContentSignatureDefaultStreamName | ( | ) |
allows to get the default stream name for storing of the signature of the document content.
string getScriptingContentSignatureDefaultStreamName | ( | ) |
allows to get the default stream name for storing of the signature of the scripting content.
boolean isAuthorTrusted | ( | [in] com::sun::star::security::XCertificate | Author | ) |
boolean isLocationTrusted | ( | [in] string | Location | ) |
void manageTrustedSources | ( | ) |
manages trusted sources (Authors and paths )
com::sun::star::security::XCertificate selectSigningCertificate | ( | [out] string | Description | ) |
This shows the certificate selection dialog and allows to only select the certificate without actually signing the document.
com::sun::star::security::XCertificate selectSigningCertificateWithType | ( | [in] CertificateKind | certificateKind, |
[out] string | Description | ||
) |
This shows the certificate selection dialog and allows to only select the certificate without actually signing the document.
Only certificates of the given type will be shown.
certificateKind | com::sun::star::security::CertificateKind ENUM to choose only from certificates of a certain type. CertificateKind_NONE lists all types of certificates for choosing. |
void setParentWindow | ( | [in] ::com::sun::star::awt::XWindow | xParentWindow | ) |
Set parent window to use when showing dialogs.
void showCertificate | ( | [in] com::sun::star::security::XCertificate | Certificate | ) |
void showDocumentContentSignatures | ( | [in] ::com::sun::star::embed::XStorage | xStorage, |
[in] ::com::sun::star::io::XInputStream | xSignInStream | ||
) |
shows the digital signatures of the document content
void showScriptingContentSignatures | ( | [in] ::com::sun::star::embed::XStorage | xStorage, |
[in] ::com::sun::star::io::XInputStream | xSignInStream | ||
) |
shows the digital signatures of the scripting content
boolean signDocumentWithCertificate | ( | [in] ::com::sun::star::security::XCertificate | xCertificate, |
[in] ::com::sun::star::embed::XStorage | xStorage, | ||
[in] ::com::sun::star::io::XStream | xStream | ||
) |
Signs the content of the document with the provided certificate.
boolean signScriptingContentWithCertificate | ( | [in] ::com::sun::star::security::XCertificate | xCertificate, |
[in] ::com::sun::star::embed::XStorage | xStorage, | ||
[in] ::com::sun::star::io::XStream | xStream | ||
) |
signs the content of the Scripting including macros and basic dialogs with the provided certificate.
The rest of document content will not be signed.
boolean signSignatureLine | ( | [in] ::com::sun::star::embed::XStorage | xStorage, |
[in] ::com::sun::star::io::XStream | xSignStream, | ||
[in] string | signatureLineId, | ||
[in] ::com::sun::star::security::XCertificate | xCertificate, | ||
[in] ::com::sun::star::graphic::XGraphic | xValidGraphic, | ||
[in] ::com::sun::star::graphic::XGraphic | xInvalidGraphic, | ||
[in] string | comment | ||
) |
Signs the content of the document including text and pictures using the given XCertificate.
Also adds the given Signature Line Id and the signed and unsigned graphics to the signature.
Macros will not be signed.
boolean trustUntrustedCertificate | ( | [in] ::com::sun::star::security::XCertificate | xCertificate | ) |
queries the user if they want to trust an untrusted certificate.
sequence< com::sun::star::security::DocumentSignatureInformation > verifyDocumentContentSignatures | ( | [in] ::com::sun::star::embed::XStorage | xStorage, |
[in] ::com::sun::star::io::XInputStream | xSignInStream | ||
) |
checks for digital signatures and their status.
Only document content will be checked.
sequence< com::sun::star::security::DocumentSignatureInformation > verifyScriptingContentSignatures | ( | [in] ::com::sun::star::embed::XStorage | xStorage, |
[in] ::com::sun::star::io::XInputStream | xSignInStream | ||
) |
checks for digital signatures and their status.
Only Scripting content will be checked.