Bump version to 6.0-36
[LibreOffice.git] / xmlsecurity / source / xmlsec / mscrypt / xmlsignature_mscryptimpl.hxx
bloba5cb5c6398a73ab6e3c610fe1d31757939f92271
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_XMLSIGNATURE_MSCRYPTIMPL_HXX
21 #define INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_XMLSIGNATURE_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/xml/crypto/XXMLSignature.hpp>
34 #include <com/sun/star/xml/crypto/XXMLSignatureTemplate.hpp>
35 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
37 class XMLSignature_MSCryptImpl : public ::cppu::WeakImplHelper<
38 css::xml::crypto::XXMLSignature ,
39 css::lang::XServiceInfo >
41 private:
42 css::uno::Reference< css::lang::XMultiServiceFactory > m_xServiceManager ;
44 public:
45 explicit XMLSignature_MSCryptImpl(const css::uno::Reference<css::lang::XMultiServiceFactory >& rFactory);
46 virtual ~XMLSignature_MSCryptImpl() override;
48 //Methods from XXMLSignature
49 virtual css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate > SAL_CALL generate(
50 const css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate >& aTemplate ,
51 const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& aEnvironment
52 ) override;
54 virtual css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate > SAL_CALL validate(
55 const css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate >& aTemplate ,
56 const css::uno::Reference< css::xml::crypto::XXMLSecurityContext >& aContext
57 ) override;
59 //Methods from XServiceInfo
60 virtual OUString SAL_CALL getImplementationName() override;
62 virtual sal_Bool SAL_CALL supportsService(
63 const OUString& ServiceName
64 ) override;
66 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
68 //Helper for XServiceInfo
69 static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ;
71 /// @throws css::uno::RuntimeException
72 static OUString impl_getImplementationName() ;
74 //Helper for registry
75 /// @throws css::uno::RuntimeException
76 static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
78 static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
79 } ;
81 #endif // INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_XMLSIGNATURE_MSCRYPTIMPL_HXX
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */