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

interface XEncryptionProtectedStorage
Base Interfaces
XEncryptionProtectedStorageXEncryptionProtectedSource2XEncryptionProtectedSource

XEncryptionProtectedSource2

Methods' Summary
setEncryptionAlgorithms allows to set the encryption algorithms for the object.  
getEncryptionAlgorithms allows to get the encryption algorithms of the object.  
setGpgProperties set OpenPGP-specific encryption properties  
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.
setGpgProperties
void
setGpgProperties( [in] sequence< sequence< ::com::sun::star::beans::NamedValue > >  aProps )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
set OpenPGP-specific encryption properties

When provided, switch ODF package encryption to OpenPGP.

For each recipient, add one sequence of named values, each of the same structure. The following values could be part of that provided sequence:

KeyId
specifies OpenPGP key ID or fingerprint of the public key used to encrypt this session key against
KeyPacket
(optional) public key packet of the key used to encrypt
CipherValue
OpenPGP-encrypted session key for this recipient

Since LibreOffice 6.0
Top of Page