bump product version to 7.6.3.2-android
[LibreOffice.git] / xmlsecurity / inc / gpg / xmlsignature_gpgimpl.hxx
blob906a51d19c1e3185fc0821c34725c180ad6c3cee
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 #pragma once
22 #include <sal/config.h>
23 #include <rtl/ustring.hxx>
24 #include <xsecxmlsecdllapi.h>
26 #include <cppuhelper/implbase.hxx>
28 #include <com/sun/star/uno/Reference.hxx>
30 #include <com/sun/star/lang/XServiceInfo.hpp>
31 #include <com/sun/star/xml/crypto/XXMLSignature.hpp>
33 namespace com::sun::star::xml::crypto { class XXMLSignatureTemplate; }
34 namespace com::sun::star::xml::crypto { class XXMLSecurityContext; }
35 namespace com::sun::star::lang { class XMultiServiceFactory; }
38 class XSECXMLSEC_DLLPUBLIC XMLSignature_GpgImpl final : public ::cppu::WeakImplHelper<
39 css::xml::crypto::XXMLSignature ,
40 css::lang::XServiceInfo >
42 public:
43 explicit XMLSignature_GpgImpl();
44 virtual ~XMLSignature_GpgImpl() override ;
46 //Methods from XXMLSignature
47 virtual css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate > SAL_CALL generate(
48 const css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate >& aTemplate ,
49 const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& aEnvironment
50 ) override ;
52 virtual css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate > SAL_CALL validate(
53 const css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate >& aTemplate ,
54 const css::uno::Reference< css::xml::crypto::XXMLSecurityContext >& aContext
55 ) override;
57 //Methods from XServiceInfo
58 virtual OUString SAL_CALL getImplementationName() override ;
60 virtual sal_Bool SAL_CALL supportsService(
61 const OUString& ServiceName
62 ) override ;
64 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override ;
66 //Helper for XServiceInfo
67 static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ;
69 /// @throws css::uno::RuntimeException
70 static OUString impl_getImplementationName() ;
72 //Helper for registry
73 /// @throws css::uno::RuntimeException
74 static css::uno::Reference< css::uno::XInterface > impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
75 } ;
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */