LibreOffice Module xmlsecurity (master) 1
signaturecreatorimpl.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 <com/sun/star/xml/crypto/sax/XBlockerMonitor.hpp>
23#include <com/sun/star/xml/crypto/sax/XSignatureCreationResultBroadcaster.hpp>
24#include <com/sun/star/lang/XInitialization.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
27
29
30namespace com::sun::star::xml::crypto { class XSecurityEnvironment; }
31namespace com::sun::star::xml::crypto::sax { class XSignatureCreationResultListener;}
32
33typedef cppu::ImplInheritanceHelper
34<
36 css::xml::crypto::sax::XBlockerMonitor,
37 css::xml::crypto::sax::XSignatureCreationResultBroadcaster,
38 css::lang::XInitialization,
39 css::lang::XServiceInfo
41
43/****** SignatureCreatorImpl.hxx/CLASS SignatureCreatorImpl *******************
44 *
45 * NAME
46 * SignatureCreatorImpl -- generates a signature
47 *
48 * FUNCTION
49 * Collects all resources for a signature generation, then generates the
50 * signature by invoking a xmlsec-based signature bridge component.
51 ******************************************************************************/
52{
53private:
54 /*
55 * the Id of template blocker.
56 */
57 sal_Int32 m_nIdOfBlocker;
58
59 css::uno::Reference< css::xml::crypto::XSecurityEnvironment > m_xSecurityEnvironment;
60
61 virtual void notifyResultListener() const override;
62 virtual void clearUp( ) const override;
63 virtual void startEngine( const rtl::Reference<XMLSignatureTemplateImpl>& xSignatureTemplate) override;
64
65public:
66 explicit SignatureCreatorImpl();
67 virtual ~SignatureCreatorImpl() override;
68
69 /* XBlockerMonitor */
70 virtual void SAL_CALL setBlockerId( sal_Int32 id ) override;
71
72 /* XSignatureCreationResultBroadcaster */
74 const css::uno::Reference< css::xml::crypto::sax::XSignatureCreationResultListener >& listener ) override;
75
77 const css::uno::Reference< css::xml::crypto::sax::XSignatureCreationResultListener >& listener ) override;
78
79 /* XInitialization */
80 virtual void SAL_CALL initialize(
81 const css::uno::Sequence< css::uno::Any >& aArguments ) override;
82
83 /* XServiceInfo */
84 virtual OUString SAL_CALL getImplementationName( ) override;
85 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
86 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
87};
88
91
93css::uno::Sequence< OUString > SignatureCreatorImpl_getSupportedServiceNames( );
94
95
96/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void clearUp() const override
virtual OUString SAL_CALL getImplementationName() override
void SAL_CALL addSignatureCreationResultListener(const css::uno::Reference< css::xml::crypto::sax::XSignatureCreationResultListener > &listener) override
virtual void startEngine(const rtl::Reference< XMLSignatureTemplateImpl > &xSignatureTemplate) override
virtual ~SignatureCreatorImpl() override
void SAL_CALL removeSignatureCreationResultListener(const css::uno::Reference< css::xml::crypto::sax::XSignatureCreationResultListener > &listener) override
css::uno::Reference< css::xml::crypto::XSecurityEnvironment > m_xSecurityEnvironment
virtual void SAL_CALL setBlockerId(sal_Int32 id) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void notifyResultListener() const override
cppu::ImplInheritanceHelper< SignatureEngine, css::xml::crypto::sax::XBlockerMonitor, css::xml::crypto::sax::XSignatureCreationResultBroadcaster, css::lang::XInitialization, css::lang::XServiceInfo > SignatureCreatorImpl_Base
OUString SignatureCreatorImpl_getImplementationName()
css::uno::Sequence< OUString > SignatureCreatorImpl_getSupportedServiceNames()
unsigned char sal_Bool