Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: security ::

unpublished interface XDocumentDigitalSignatures
Usage Restrictions
not published
Description
interface for signing and verifying digital signatures in office documents

This interface can be used to digitaly sign different content in a office document. It can also be used to verify digital signatures.


Methods' Summary
signDocumentContent signs the content of the document including text and pictures.  
verifyDocumentContentSignatures checks for digital signatures and their status.  
showDocumentContentSignatures shows the digital signatures of the document content  
getDocumentContentSignatureDefaultStreamName allows to get the default stream name for storing of the signature of the document content.  
signScriptingContent signs the content of the Scripting including macros and basic dialogs  
verifyScriptingContentSignatures checks for digital signatures and their status.  
showScriptingContentSignatures shows the digital signatures of the scripting content  
getScriptingContentSignatureDefaultStreamName allows to get the default stream name for storing of the signature of the scripting content.  
signPackage signs the full Package, which means everything in the storage excecpt the content of META-INF  
verifyPackageSignatures checks for digital signatures and their status.  
showPackageSignatures shows the digital signatures of the package  
getPackageSignatureDefaultStreamName allows to get the default stream name for storing of the signature of the package.  
showCertificate  
manageTrustedSources manages trusted sources (Authors and pathes )  
isAuthorTrusted  
isLocationTrusted  
addAuthorToTrustedSources  
addLocationToTrustedSources  
Methods' Details
signDocumentContent
boolean
signDocumentContent( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] ::com::sun::star::io::XStream  xSignStream );

Description
signs the content of the document including text and pictures.

Macros will not be signed.

verifyDocumentContentSignatures
sequence< DocumentSignatureInformation >
verifyDocumentContentSignatures( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] ::com::sun::star::io::XInputStream  xSignInStream );

Description
checks for digital signatures and their status.

Only document content will be checked.

showDocumentContentSignatures
void
showDocumentContentSignatures( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] ::com::sun::star::io::XInputStream  xSignInStream );

Description
shows the digital signatures of the document content
getDocumentContentSignatureDefaultStreamName
string
getDocumentContentSignatureDefaultStreamName();

Description
allows to get the default stream name for storing of the signature of the document content.
signScriptingContent
boolean
signScriptingContent( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] ::com::sun::star::io::XStream  xSignStream );

Description
signs the content of the Scripting including macros and basic dialogs

The rest of document content will not be signed.

verifyScriptingContentSignatures
sequence< DocumentSignatureInformation >
verifyScriptingContentSignatures( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] ::com::sun::star::io::XInputStream  xSignInStream );

Description
checks for digital signatures and their status.

Only Scripting content will be checked.

showScriptingContentSignatures
void
showScriptingContentSignatures( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] ::com::sun::star::io::XInputStream  xSignInStream );

Description
shows the digital signatures of the scripting content
getScriptingContentSignatureDefaultStreamName
string
getScriptingContentSignatureDefaultStreamName();

Description
allows to get the default stream name for storing of the signature of the scripting content.
signPackage
boolean
signPackage( [in] ::com::sun::star::embed::XStorage  Storage,
[in] ::com::sun::star::io::XStream  xSignStream );

Description
signs the full Package, which means everything in the storage excecpt the content of META-INF
verifyPackageSignatures
sequence< DocumentSignatureInformation >
verifyPackageSignatures( [in] ::com::sun::star::embed::XStorage  Storage,
[in] ::com::sun::star::io::XInputStream  xSignInStream );

Description
checks for digital signatures and their status.

Only Package content will be checked.

showPackageSignatures
void
showPackageSignatures( [in] ::com::sun::star::embed::XStorage  xStorage,
[in] ::com::sun::star::io::XInputStream  xSignInStream );

Description
shows the digital signatures of the package
getPackageSignatureDefaultStreamName
string
getPackageSignatureDefaultStreamName();

Description
allows to get the default stream name for storing of the signature of the package.
showCertificate
void
showCertificate( [in] XCertificate  Certificate );

manageTrustedSources
void
manageTrustedSources();

Description
manages trusted sources (Authors and pathes )
isAuthorTrusted
boolean
isAuthorTrusted( [in] XCertificate  Author );

isLocationTrusted
boolean
isLocationTrusted( [in] string  Location );

addAuthorToTrustedSources
void
addAuthorToTrustedSources( [in] XCertificate  Author );

addLocationToTrustedSources
void
addLocationToTrustedSources( [in] string  Location );

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.