Bump version to 6.0-36
[LibreOffice.git] / xmlsecurity / source / xmlsec / mscrypt / xmlsecuritycontext_mscryptimpl.hxx
blob3f9bc3c40ba77741929cc8479a493e6a18ae4e7f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_XMLSECURITYCONTEXT_MSCRYPTIMPL_HXX
21 #define INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_XMLSECURITYCONTEXT_MSCRYPTIMPL_HXX
23 #include <sal/config.h>
24 #include <rtl/ustring.hxx>
25 #include <cppuhelper/factory.hxx>
26 #include <cppuhelper/implbase.hxx>
27 #include <com/sun/star/uno/Exception.hpp>
29 #include <com/sun/star/uno/Reference.hxx>
30 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
32 #include <com/sun/star/lang/XServiceInfo.hpp>
33 #include <com/sun/star/lang/XUnoTunnel.hpp>
34 #include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
35 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
38 class XMLSecurityContext_MSCryptImpl : public ::cppu::WeakImplHelper<
39 css::xml::crypto::XXMLSecurityContext ,
40 css::lang::XServiceInfo >
42 private:
43 //xmlSecKeysMngrPtr m_pKeysMngr ;
44 css::uno::Reference< css::xml::crypto::XSecurityEnvironment > m_xSecurityEnvironment ;
46 public:
47 XMLSecurityContext_MSCryptImpl();
48 virtual ~XMLSecurityContext_MSCryptImpl() override;
50 //Methods from XXMLSecurityContext
51 virtual sal_Int32 SAL_CALL addSecurityEnvironment(
52 const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& aSecurityEnvironment
53 ) override;
55 virtual ::sal_Int32 SAL_CALL getSecurityEnvironmentNumber( ) override;
57 virtual css::uno::Reference<
58 css::xml::crypto::XSecurityEnvironment > SAL_CALL
59 getSecurityEnvironmentByIndex( ::sal_Int32 index ) override;
61 virtual css::uno::Reference<
62 css::xml::crypto::XSecurityEnvironment > SAL_CALL
63 getSecurityEnvironment( ) override;
65 virtual ::sal_Int32 SAL_CALL getDefaultSecurityEnvironmentIndex( ) override;
67 virtual void SAL_CALL setDefaultSecurityEnvironmentIndex( sal_Int32 nDefaultEnvIndex ) override;
70 //Methods from XServiceInfo
71 virtual OUString SAL_CALL getImplementationName() override;
73 virtual sal_Bool SAL_CALL supportsService(
74 const OUString& ServiceName
75 ) override;
77 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
79 //Helper for XServiceInfo
80 static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ;
82 /// @throws css::uno::RuntimeException
83 static OUString impl_getImplementationName() ;
85 //Helper for registry
86 /// @throws css::uno::RuntimeException
87 static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
89 static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
91 } ;
93 #endif // INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_XMLSECURITYCONTEXT_MSCRYPTIMPL_HXX
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */