LibreOffice Module package (master) 1
|
#include <ManifestImport.hxx>
Public Member Functions | |
ManifestImport (std::vector< css::uno::Sequence< css::beans::PropertyValue > > &rNewVector) | |
virtual | ~ManifestImport () override |
virtual void SAL_CALL | startDocument () override |
virtual void SAL_CALL | endDocument () override |
virtual void SAL_CALL | startElement (const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override |
virtual void SAL_CALL | endElement (const OUString &aName) override |
virtual void SAL_CALL | characters (const OUString &aChars) override |
virtual void SAL_CALL | ignorableWhitespace (const OUString &aWhitespaces) override |
virtual void SAL_CALL | processingInstruction (const OUString &aTarget, const OUString &aData) override |
virtual void SAL_CALL | setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override |
Private Member Functions | |
OUString | PushNameAndNamespaces (const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs, StringHashMap &o_aConvertedAttribs) |
OUString | ConvertName (const OUString &aName) |
void | doFileEntry (StringHashMap &rConvertedAttribs) |
void | doEncryptionData (StringHashMap &rConvertedAttribs) |
void | doAlgorithm (StringHashMap &rConvertedAttribs) |
void | doKeyDerivation (StringHashMap &rConvertedAttribs) |
void | doStartKeyAlg (StringHashMap &rConvertedAttribs) |
void | doEncryptedKey (StringHashMap &) |
void | doEncryptionMethod (StringHashMap &, const OUString &) |
void | doEncryptedCipherValue () |
void | doEncryptedKeyId () |
void | doEncryptedKeyPacket () |
Static Private Member Functions | |
static OUString | ConvertNameWithNamespace (const OUString &aName, const StringHashMap &aNamespaces) |
Private Attributes | |
std::vector< css::beans::NamedValue > | aKeyInfoSequence |
std::vector< css::uno::Sequence< css::beans::NamedValue > > | aKeys |
std::vector< css::beans::PropertyValue > | aSequence |
OUStringBuffer | aCurrentCharacters {64} |
ManifestStack | aStack |
bool | bIgnoreEncryptData |
bool | bPgpEncryption |
sal_Int32 | nDerivedKeySize |
::std::vector< css::uno::Sequence< css::beans::PropertyValue > > & | rManVector |
Definition at line 53 of file ManifestImport.hxx.
ManifestImport::ManifestImport | ( | std::vector< css::uno::Sequence< css::beans::PropertyValue > > & | rNewVector | ) |
Definition at line 48 of file ManifestImport.cxx.
References aStack.
|
overridevirtual |
Definition at line 57 of file ManifestImport.cxx.
|
overridevirtual |
Definition at line 457 of file ManifestImport.cxx.
References aCurrentCharacters.
|
private |
Definition at line 536 of file ManifestImport.cxx.
References aName, aStack, and ConvertNameWithNamespace().
Referenced by endElement(), and PushNameAndNamespaces().
|
staticprivate |
Definition at line 513 of file ManifestImport.cxx.
References aName, MANIFEST_NAMESPACE, MANIFEST_NSPREFIX, and MANIFEST_OASIS_NAMESPACE.
Referenced by ConvertName(), and PushNameAndNamespaces().
|
private |
css::uno::RuntimeException |
Definition at line 178 of file ManifestImport.cxx.
References AES128_URL, AES192_URL, AES256_URL, aSequence, ATTRIBUTE_ALGORITHM_NAME, ATTRIBUTE_INITIALISATION_VECTOR, bIgnoreEncryptData, BLOWFISH_NAME, BLOWFISH_URL, comphelper::Base64::decode(), gsEncryptionAlgProperty(), gsInitialisationVectorProperty(), nDerivedKeySize, PKG_MNFST_ENCALG, and PKG_MNFST_INIVECTOR.
Referenced by startElement().
|
private |
Definition at line 109 of file ManifestImport.cxx.
References aCurrentCharacters, aKeyInfoSequence, bIgnoreEncryptData, and comphelper::Base64::decode().
Referenced by endElement().
|
private |
Definition at line 92 of file ManifestImport.cxx.
References aKeyInfoSequence.
Referenced by startElement().
|
private |
Definition at line 123 of file ManifestImport.cxx.
References aCurrentCharacters, aKeyInfoSequence, bIgnoreEncryptData, and comphelper::Base64::decode().
Referenced by endElement().
|
private |
Definition at line 137 of file ManifestImport.cxx.
References aCurrentCharacters, aKeyInfoSequence, bIgnoreEncryptData, and comphelper::Base64::decode().
Referenced by endElement().
|
private |
css::uno::RuntimeException |
Definition at line 151 of file ManifestImport.cxx.
References aSequence, ATTRIBUTE_CHECKSUM, ATTRIBUTE_CHECKSUM_TYPE, bIgnoreEncryptData, comphelper::Base64::decode(), gsDigestAlgProperty(), gsDigestProperty(), nDerivedKeySize, PKG_MNFST_DIGEST, PKG_MNFST_DIGESTALG, SHA1_1K_NAME, SHA1_1K_URL, and SHA256_1K_URL.
Referenced by startElement().
|
private |
Definition at line 98 of file ManifestImport.cxx.
References aKeyInfoSequence, and bIgnoreEncryptData.
Referenced by startElement().
|
private |
css::uno::RuntimeException |
Definition at line 69 of file ManifestImport.cxx.
References aSequence, ATTRIBUTE_FULL_PATH, ATTRIBUTE_MEDIA_TYPE, ATTRIBUTE_SIZE, ATTRIBUTE_VERSION, gsFullPathProperty(), gsMediaTypeProperty(), gsSizeProperty(), gsVersionProperty(), PKG_MNFST_FULLPATH, PKG_MNFST_MEDIATYPE, PKG_MNFST_UCOMPSIZE, PKG_MNFST_VERSION, and PKG_SIZE_ENCR_MNFST.
Referenced by startElement().
|
private |
css::uno::RuntimeException |
Definition at line 214 of file ManifestImport.cxx.
References aSequence, ATTRIBUTE_ITERATION_COUNT, ATTRIBUTE_KEY_DERIVATION_NAME, ATTRIBUTE_KEY_SIZE, ATTRIBUTE_SALT, bIgnoreEncryptData, bPgpEncryption, comphelper::Base64::decode(), gsDerivedKeySizeProperty(), gsIterationCountProperty(), gsSaltProperty(), nDerivedKeySize, PBKDF2_NAME, PBKDF2_URL, PKG_MNFST_DERKEYSIZE, PKG_MNFST_ITERATION, and PKG_MNFST_SALT.
Referenced by startElement().
|
private |
css::uno::RuntimeException |
Definition at line 250 of file ManifestImport.cxx.
References aSequence, ATTRIBUTE_START_KEY_GENERATION_NAME, bIgnoreEncryptData, gsStartKeyAlgProperty(), PKG_MNFST_STARTALG, SHA1_NAME, SHA1_URL, SHA256_URL, and SHA256_URL_ODF12.
Referenced by startElement().
|
overridevirtual |
Definition at line 65 of file ManifestImport.cxx.
|
overridevirtual |
Definition at line 387 of file ManifestImport.cxx.
References aKeyInfoSequence, aKeys, aName, aSequence, aStack, bIgnoreEncryptData, bPgpEncryption, comphelper::containerToSequence(), ConvertName(), doEncryptedCipherValue(), doEncryptedKeyId(), doEncryptedKeyPacket(), ELEMENT_CIPHERVALUE, ELEMENT_CIPHERVALUE13, ELEMENT_ENCRYPTEDKEY, ELEMENT_ENCRYPTEDKEY13, ELEMENT_FILE_ENTRY, ELEMENT_PGPKEYID, ELEMENT_PGPKEYID13, ELEMENT_PGPKEYPACKET, ELEMENT_PGPKEYPACKET13, PKG_MNFST_FULLPATH, PKG_SIZE_NOENCR_MNFST, and rManVector.
|
overridevirtual |
Definition at line 462 of file ManifestImport.cxx.
|
overridevirtual |
Definition at line 466 of file ManifestImport.cxx.
|
private |
Definition at line 474 of file ManifestImport.cxx.
References aName, aStack, ConvertName(), and ConvertNameWithNamespace().
Referenced by startElement().
|
overridevirtual |
Definition at line 470 of file ManifestImport.cxx.
|
overridevirtual |
Definition at line 61 of file ManifestImport.cxx.
|
overridevirtual |
Definition at line 263 of file ManifestImport.cxx.
References aCurrentCharacters, aName, aStack, ATTRIBUTE_ALGORITHM, ATTRIBUTE_ALGORITHM13, doAlgorithm(), doEncryptedKey(), doEncryptionData(), doEncryptionMethod(), doFileEntry(), doKeyDerivation(), doStartKeyAlg(), ELEMENT_ALGORITHM, ELEMENT_CIPHERDATA, ELEMENT_CIPHERDATA13, ELEMENT_CIPHERVALUE, ELEMENT_CIPHERVALUE13, ELEMENT_ENCRYPTED_KEYINFO, ELEMENT_ENCRYPTEDKEY, ELEMENT_ENCRYPTEDKEY13, ELEMENT_ENCRYPTION_DATA, ELEMENT_ENCRYPTIONMETHOD, ELEMENT_ENCRYPTIONMETHOD13, ELEMENT_FILE_ENTRY, ELEMENT_KEY_DERIVATION, ELEMENT_MANIFEST, ELEMENT_MANIFEST13_KEYINFO, ELEMENT_MANIFEST_KEYINFO, ELEMENT_PGPDATA, ELEMENT_PGPDATA13, ELEMENT_PGPKEYID, ELEMENT_PGPKEYID13, ELEMENT_PGPKEYPACKET, ELEMENT_PGPKEYPACKET13, ELEMENT_START_KEY_GENERATION, and PushNameAndNamespaces().
|
private |
Definition at line 58 of file ManifestImport.hxx.
Referenced by characters(), doEncryptedCipherValue(), doEncryptedKeyId(), doEncryptedKeyPacket(), and startElement().
|
private |
Definition at line 55 of file ManifestImport.hxx.
Referenced by doEncryptedCipherValue(), doEncryptedKey(), doEncryptedKeyId(), doEncryptedKeyPacket(), doEncryptionMethod(), and endElement().
|
private |
Definition at line 56 of file ManifestImport.hxx.
Referenced by endElement().
|
private |
Definition at line 57 of file ManifestImport.hxx.
Referenced by doAlgorithm(), doEncryptionData(), doFileEntry(), doKeyDerivation(), doStartKeyAlg(), and endElement().
|
private |
Definition at line 59 of file ManifestImport.hxx.
Referenced by ConvertName(), endElement(), ManifestImport(), PushNameAndNamespaces(), and startElement().
|
private |
Definition at line 60 of file ManifestImport.hxx.
Referenced by doAlgorithm(), doEncryptedCipherValue(), doEncryptedKeyId(), doEncryptedKeyPacket(), doEncryptionData(), doEncryptionMethod(), doKeyDerivation(), doStartKeyAlg(), and endElement().
|
private |
Definition at line 61 of file ManifestImport.hxx.
Referenced by doKeyDerivation(), and endElement().
|
private |
Definition at line 62 of file ManifestImport.hxx.
Referenced by doAlgorithm(), doEncryptionData(), and doKeyDerivation().
|
private |
Definition at line 63 of file ManifestImport.hxx.
Referenced by endElement().