LibreOffice Module xmlsecurity (master) 1
xmlsignature_gpgimpl.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <sal/config.h>
23#include <rtl/ustring.hxx>
24#include <xsecxmlsecdllapi.h>
25
27
28#include <com/sun/star/uno/Reference.hxx>
29
30#include <com/sun/star/lang/XServiceInfo.hpp>
31#include <com/sun/star/xml/crypto/XXMLSignature.hpp>
32
33namespace com::sun::star::xml::crypto { class XXMLSignatureTemplate; }
34namespace com::sun::star::xml::crypto { class XXMLSecurityContext; }
35namespace com::sun::star::lang { class XMultiServiceFactory; }
36
37
38class XSECXMLSEC_DLLPUBLIC XMLSignature_GpgImpl final : public ::cppu::WeakImplHelper<
39 css::xml::crypto::XXMLSignature ,
40 css::lang::XServiceInfo >
41{
42 public:
43 explicit XMLSignature_GpgImpl();
44 virtual ~XMLSignature_GpgImpl() override ;
45
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 ;
51
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;
56
57 //Methods from XServiceInfo
58 virtual OUString SAL_CALL getImplementationName() override ;
59
60 virtual sal_Bool SAL_CALL supportsService(
61 const OUString& ServiceName
62 ) override ;
63
64 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override ;
65
66 //Helper for XServiceInfo
67 static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ;
68
70 static OUString impl_getImplementationName() ;
71
72 //Helper for registry
74 static css::uno::Reference< css::uno::XInterface > impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
75} ;
76
77/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
unsigned char sal_Bool
#define XSECXMLSEC_DLLPUBLIC