Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: embed ::

unpublished interface XEncryptionProtectedStorage
Base Interfaces
XEncryptionProtectedStorageXEncryptionProtectedSource2XEncryptionProtectedSource

XEncryptionProtectedSource2
(referenced interface's summary:)
This interface allows to set a password for an object.
Usage Restrictions
not published
Description
This interface allows to set a password for an object.
Since
OOo 3.4

Methods' Summary
setEncryptionAlgorithms allows to set the encryption algorithms for the object.  
getEncryptionAlgorithms allows to get the encryption algorithms of the object.  
Methods' Details
setEncryptionAlgorithms
void
setEncryptionAlgorithms( [in] sequence< ::com::sun::star::beans::NamedValue >  aAlgorithms )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
allows to set the encryption algorithms for the object.

The algorithms will of course be used only for streams that have been marked to be encrypted. If no stream in the storage is marked to be encrypted, the algorithms-related information may have no effect to the result package.

The following values could be part of the provided sequence:

StartKeyGenerationAlgorithm
specifies the algorithm that was used to generate the EncryptionKey from the original password; in case the contents should be decrypted, the algorithm might be already known by the object; if a different one is set an exception should be thrown to indicate the error; it should take values from com::sun::star::xml:crypto::DigestID.
EncryptionAlgorithm
specifies the algorithm that should be used to encrypt/decrypt the contents; in case the contents should be decrypted, the algorithm might be already known by the object; if a different one is set an exception should be thrown to indicate the error; it should take values from com::sun::star::xml:crypto::CipherID.
ChecksumAlgorithm
specifies the algorithm that was used to generate the checksum of the encrypted data; in case the contents should be decrypted, the algorithm might be already known by the object; if a different one is set an exception should be thrown to indicate the error; it should take values from com::sun::star::xml:crypto::DigestID.
getEncryptionAlgorithms
sequence< ::com::sun::star::beans::NamedValue >
getEncryptionAlgorithms();

Description
allows to get the encryption algorithms of the object.
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.