1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #include <sal/config.h>
13 #include <rtl/ustring.hxx>
14 #include <cppuhelper/implbase.hxx>
16 #include <com/sun/star/uno/Reference.hxx>
17 #include <com/sun/star/lang/XServiceInfo.hpp>
18 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
22 namespace com::sun::star::xml::crypto
{ class XSecurityEnvironment
; }
24 class XMLSecurityContextGpg
: public cppu::WeakImplHelper
< css::xml::crypto::XXMLSecurityContext
,
25 css::lang::XServiceInfo
>
28 std::vector
< css::uno::Reference
< css::xml::crypto::XSecurityEnvironment
> > m_vSecurityEnvironments
;
30 sal_Int32 m_nDefaultEnvIndex
;
33 XMLSecurityContextGpg();
34 virtual ~XMLSecurityContextGpg() override
;
36 // XXMLSecurityContext
37 virtual sal_Int32 SAL_CALL
addSecurityEnvironment(
38 const css::uno::Reference
< css::xml::crypto::XSecurityEnvironment
>& aSecurityEnvironment
) override
;
40 virtual ::sal_Int32 SAL_CALL
getSecurityEnvironmentNumber() override
;
42 virtual css::uno::Reference
<css::xml::crypto::XSecurityEnvironment
> SAL_CALL
getSecurityEnvironmentByIndex(sal_Int32 index
) override
;
44 virtual css::uno::Reference
<css::xml::crypto::XSecurityEnvironment
> SAL_CALL
getSecurityEnvironment() override
;
46 virtual sal_Int32 SAL_CALL
getDefaultSecurityEnvironmentIndex() override
;
48 virtual void SAL_CALL
setDefaultSecurityEnvironmentIndex( sal_Int32 nDefaultEnvIndex
) override
;
51 virtual OUString SAL_CALL
getImplementationName() override
;
53 virtual sal_Bool SAL_CALL
supportsService(const OUString
& ServiceName
) override
;
55 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() override
;
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */