LibreOffice Module xmlsecurity (master) 1
|
#include <certificatechooser.hxx>
Public Member Functions | |
CertificateChooser (weld::Window *pParent, std::vector< css::uno::Reference< css::xml::crypto::XXMLSecurityContext > > &&rxSecurityContexts, UserAction eAction) | |
virtual | ~CertificateChooser () override |
short | run () override |
css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > | GetSelectedCertificates () |
css::uno::Reference< css::xml::crypto::XXMLSecurityContext > | GetSelectedSecurityContext () const |
OUString | GetDescription () const |
Gets the description string provided when selecting the certificate. More... | |
OUString | GetUsageText () |
Returns the usage string of the selected certificate, if any. More... | |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Static Public Member Functions | |
static OUString | UsageInClearText (int bits) |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Private Member Functions | |
DECL_LINK (ViewButtonHdl, weld::Button &, void) | |
DECL_LINK (CertificateHighlightHdl, weld::TreeView &, void) | |
DECL_LINK (CertificateSelectHdl, weld::TreeView &, bool) | |
DECL_LINK (SearchModifyHdl, weld::Entry &, void) | |
void | ImplShowCertificateDetails () |
void | ImplInitialize (bool mbSearch=false) |
Static Private Member Functions | |
static void | HandleOneUsageBit (OUString &string, int &bits, int bit, TranslateId name) |
Private Attributes | |
std::vector< css::uno::Reference< css::xml::crypto::XXMLSecurityContext > > | mxSecurityContexts |
std::vector< std::shared_ptr< UserData > > | mvUserData |
bool | mbInitialized |
UserAction const | meAction |
OUString | msPreferredKey |
css::uno::Reference< css::security::XCertificate > | mxEncryptToSelf |
std::unique_ptr< weld::Label > | m_xFTSign |
std::unique_ptr< weld::Label > | m_xFTEncrypt |
std::unique_ptr< weld::TreeView > | m_xCertLB |
std::unique_ptr< weld::Button > | m_xViewBtn |
std::unique_ptr< weld::Button > | m_xOKBtn |
std::unique_ptr< weld::Label > | m_xFTDescription |
std::unique_ptr< weld::Entry > | m_xDescriptionED |
std::unique_ptr< weld::Entry > | m_xSearchBox |
std::unordered_map< css::uno::Reference< css::xml::crypto::XXMLSecurityContext >, css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > > | xMemCerts |
Additional Inherited Members | |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 51 of file certificatechooser.hxx.
CertificateChooser::CertificateChooser | ( | weld::Window * | pParent, |
std::vector< css::uno::Reference< css::xml::crypto::XXMLSecurityContext > > && | rxSecurityContexts, | ||
UserAction | eAction | ||
) |
Definition at line 42 of file certificatechooser.cxx.
References LINK, m_xCertLB, m_xSearchBox, m_xViewBtn, mbInitialized, and mxSecurityContexts.
|
overridevirtual |
Definition at line 80 of file certificatechooser.cxx.
|
private |
|
private |
|
private |
|
private |
OUString CertificateChooser::GetDescription | ( | ) | const |
Gets the description string provided when selecting the certificate.
Definition at line 312 of file certificatechooser.cxx.
References m_xDescriptionED.
Referenced by IMPL_LINK_NOARG().
uno::Sequence< uno::Reference< css::security::XCertificate > > CertificateChooser::GetSelectedCertificates | ( | ) |
Definition at line 269 of file certificatechooser.cxx.
References comphelper::containerToSequence(), Encrypt, m_xCertLB, meAction, and mxEncryptToSelf.
Referenced by GetUsageText(), and IMPL_LINK_NOARG().
uno::Reference< xml::crypto::XXMLSecurityContext > CertificateChooser::GetSelectedSecurityContext | ( | ) | const |
Definition at line 301 of file certificatechooser.cxx.
References m_xCertLB.
Referenced by IMPL_LINK_NOARG().
OUString CertificateChooser::GetUsageText | ( | ) |
Returns the usage string of the selected certificate, if any.
Definition at line 317 of file certificatechooser.cxx.
References GetSelectedCertificates(), and UsageInClearText().
|
staticprivate |
Definition at line 104 of file certificatechooser.cxx.
References bit, and XsResId().
Referenced by UsageInClearText().
|
private |
Definition at line 139 of file certificatechooser.cxx.
References Encrypt, SvtSysLocale::GetCharClass(), utl::GetDateString(), SvtUserOptions::GetEncryptionKey(), SvtUserOptions::GetEncryptToSelf(), SvtUserOptions::GetSigningKey(), m_xCertLB, m_xDescriptionED, m_xFTDescription, m_xFTEncrypt, m_xFTSign, m_xOKBtn, m_xSearchBox, mbInitialized, meAction, msPreferredKey, mvUserData, mxEncryptToSelf, mxSecurityContexts, SelectSign, sId, Sign, weld::toId(), CharClass::uppercase(), UsageInClearText(), xMemCerts, and XsResId().
Referenced by run().
|
private |
Definition at line 349 of file certificatechooser.cxx.
References m_xCertLB, weld::GenericDialogController::m_xDialog, and weld::DialogController::run().
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 84 of file certificatechooser.cxx.
References ImplInitialize(), and weld::GenericDialogController::m_xDialog.
Referenced by IMPL_LINK_NOARG().
|
static |
Definition at line 115 of file certificatechooser.cxx.
References HandleOneUsageBit(), and result.
Referenced by CertificateViewerDetailsTP::CertificateViewerDetailsTP(), GetUsageText(), and ImplInitialize().
|
private |
Definition at line 64 of file certificatechooser.hxx.
Referenced by CertificateChooser(), GetSelectedCertificates(), GetSelectedSecurityContext(), ImplInitialize(), and ImplShowCertificateDetails().
|
private |
Definition at line 68 of file certificatechooser.hxx.
Referenced by GetDescription(), and ImplInitialize().
|
private |
Definition at line 67 of file certificatechooser.hxx.
Referenced by ImplInitialize().
|
private |
Definition at line 63 of file certificatechooser.hxx.
Referenced by ImplInitialize().
|
private |
Definition at line 62 of file certificatechooser.hxx.
Referenced by ImplInitialize().
|
private |
Definition at line 66 of file certificatechooser.hxx.
Referenced by ImplInitialize().
|
private |
Definition at line 69 of file certificatechooser.hxx.
Referenced by CertificateChooser(), and ImplInitialize().
|
private |
Definition at line 65 of file certificatechooser.hxx.
Referenced by CertificateChooser().
|
private |
Definition at line 57 of file certificatechooser.hxx.
Referenced by CertificateChooser(), and ImplInitialize().
|
private |
Definition at line 58 of file certificatechooser.hxx.
Referenced by GetSelectedCertificates(), and ImplInitialize().
|
private |
Definition at line 59 of file certificatechooser.hxx.
Referenced by ImplInitialize().
|
private |
Definition at line 55 of file certificatechooser.hxx.
Referenced by ImplInitialize().
|
private |
Definition at line 60 of file certificatechooser.hxx.
Referenced by GetSelectedCertificates(), and ImplInitialize().
|
private |
Definition at line 54 of file certificatechooser.hxx.
Referenced by CertificateChooser(), and ImplInitialize().
|
private |
Definition at line 72 of file certificatechooser.hxx.
Referenced by ImplInitialize().