Bump version to 5.0-14
[LibreOffice.git] / xmlsecurity / source / xmlsec / mscrypt / seinitializer_mscryptimpl.hxx
blob57a9af70426d96728d4cdf89d4f5c14d2ed8ee1d
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_SEINITIALIZER_MSCRYPTIMPL_HXX
21 #define INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_SEINITIALIZER_MSCRYPTIMPL_HXX
23 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
24 #include <com/sun/star/xml/crypto/XSEInitializer.hpp>
25 #include <com/sun/star/lang/XUnoTunnel.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <com/sun/star/uno/XComponentContext.hpp>
29 #include <cppuhelper/implbase2.hxx>
31 #include <libxml/tree.h>
33 class SEInitializer_MSCryptImpl : public cppu::WeakImplHelper2
35 com::sun::star::xml::crypto::XSEInitializer,
36 com::sun::star::lang::XServiceInfo
38 /****** SEInitializer_MSCryptImpl.hxx/CLASS SEInitializer_MSCryptImpl ***********
40 * NAME
41 * SEInitializer_MSCryptImpl -- Class to initialize a Security Context
42 * instance
44 * FUNCTION
45 * Use this class to initialize a XmlSec based Security Context
46 * instance. After this instance is used up, use this class to free this
47 * instance.
49 * AUTHOR
50 * Michael Mi
51 * Email: michael.mi@sun.com
52 ******************************************************************************/
54 private:
55 com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxContext;
57 public:
58 explicit SEInitializer_MSCryptImpl(const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > &rxContext);
59 virtual ~SEInitializer_MSCryptImpl();
61 /* XSEInitializer */
62 virtual com::sun::star::uno::Reference<
63 com::sun::star::xml::crypto::XXMLSecurityContext >
64 SAL_CALL createSecurityContext( const OUString& certDB )
65 throw (com::sun::star::uno::RuntimeException);
67 virtual void SAL_CALL freeSecurityContext( const com::sun::star::uno::Reference<
68 com::sun::star::xml::crypto::XXMLSecurityContext >& securityContext )
69 throw (com::sun::star::uno::RuntimeException);
71 /* XServiceInfo */
72 virtual OUString SAL_CALL getImplementationName( )
73 throw (com::sun::star::uno::RuntimeException);
75 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
76 throw (com::sun::star::uno::RuntimeException);
78 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
79 throw (com::sun::star::uno::RuntimeException);
82 OUString SEInitializer_MSCryptImpl_getImplementationName()
83 throw ( com::sun::star::uno::RuntimeException );
85 sal_Bool SAL_CALL SEInitializer_MSCryptImpl_supportsService( const OUString& ServiceName )
86 throw ( com::sun::star::uno::RuntimeException );
88 com::sun::star::uno::Sequence< OUString > SAL_CALL SEInitializer_MSCryptImpl_getSupportedServiceNames( )
89 throw ( com::sun::star::uno::RuntimeException );
91 com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
92 SAL_CALL SEInitializer_MSCryptImpl_createInstance( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > & rSMgr)
93 throw ( com::sun::star::uno::Exception );
95 #endif
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */