22#include <com/sun/star/uno/Sequence.hxx>
26#include <unordered_map>
29 namespace security {
class XCertificate; }
30 namespace xml::crypto {
31 class XSecurityEnvironment;
39 css::uno::Reference<css::security::XCertificate> xCertificate;
40 css::uno::Reference<css::xml::crypto::XXMLSecurityContext> xSecurityContext;
41 css::uno::Reference<css::xml::crypto::XSecurityEnvironment> xSecurityEnvironment;
71 std::unordered_map<css::uno::Reference< css::xml::crypto::XXMLSecurityContext>,
72 css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > >
xMemCerts;
87 std::vector< css::uno::Reference< css::xml::crypto::XXMLSecurityContext > > && rxSecurityContexts,
static OUString UsageInClearText(int bits)
CertificateChooser(weld::Window *pParent, std::vector< css::uno::Reference< css::xml::crypto::XXMLSecurityContext > > &&rxSecurityContexts, UserAction eAction)
std::unique_ptr< weld::Button > m_xViewBtn
DECL_LINK(CertificateHighlightHdl, weld::TreeView &, void)
void ImplInitialize(bool mbSearch=false)
std::unique_ptr< weld::Entry > m_xSearchBox
static void HandleOneUsageBit(OUString &string, int &bits, int bit, TranslateId name)
virtual ~CertificateChooser() override
DECL_LINK(SearchModifyHdl, weld::Entry &, void)
std::unique_ptr< weld::Label > m_xFTDescription
UserAction const meAction
std::vector< std::shared_ptr< UserData > > mvUserData
css::uno::Reference< css::security::XCertificate > mxEncryptToSelf
std::vector< css::uno::Reference< css::xml::crypto::XXMLSecurityContext > > mxSecurityContexts
std::unique_ptr< weld::Button > m_xOKBtn
css::uno::Reference< css::xml::crypto::XXMLSecurityContext > GetSelectedSecurityContext() const
DECL_LINK(CertificateSelectHdl, weld::TreeView &, bool)
std::unique_ptr< weld::Label > m_xFTEncrypt
std::unique_ptr< weld::Label > m_xFTSign
std::unordered_map< css::uno::Reference< css::xml::crypto::XXMLSecurityContext >, css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > > xMemCerts
OUString GetDescription() const
Gets the description string provided when selecting the certificate.
css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > GetSelectedCertificates()
std::unique_ptr< weld::Entry > m_xDescriptionED
std::unique_ptr< weld::TreeView > m_xCertLB
OUString GetUsageText()
Returns the usage string of the selected certificate, if any.
DECL_LINK(ViewButtonHdl, weld::Button &, void)
void ImplShowCertificateDetails()