1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: seinitializer_nssimpl.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SEINITIALIZERIMPL_HXX
32 #define _SEINITIALIZERIMPL_HXX
34 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
35 #ifndef _COM_SUN_STAR_XML_CRYPTO_SEINITIALIZER_HPP_
36 #include <com/sun/star/xml/crypto/XSEInitializer.hpp>
38 #include <com/sun/star/lang/XUnoTunnel.hpp>
39 #include <com/sun/star/lang/XServiceInfo.hpp>
40 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
41 #include <cppuhelper/implbase2.hxx>
43 #include <libxml/tree.h>
45 class SEInitializer_NssImpl
: public cppu::WeakImplHelper2
47 com::sun::star::xml::crypto::XSEInitializer
,
48 com::sun::star::lang::XServiceInfo
50 /****** SEInitializer_NssImpl.hxx/CLASS SEInitializer_NssImpl ***********
53 * SEInitializer_NssImpl -- Class to initialize a Security Context
57 * Use this class to initialize a XmlSec based Security Context
58 * instance. After this instance is used up, use this class to free this
62 * 05.01.2004 - Interface supported: XSEInitializer, XSEInitializer
66 * Email: michael.mi@sun.com
67 ******************************************************************************/
70 com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
> mxMSF
;
73 SEInitializer_NssImpl(const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
> &rxMSF
);
74 virtual ~SEInitializer_NssImpl();
77 virtual com::sun::star::uno::Reference
<
78 com::sun::star::xml::crypto::XXMLSecurityContext
>
79 SAL_CALL
createSecurityContext( const rtl::OUString
& certDB
)
80 throw (com::sun::star::uno::RuntimeException
);
82 virtual void SAL_CALL
freeSecurityContext( const com::sun::star::uno::Reference
<
83 com::sun::star::xml::crypto::XXMLSecurityContext
>& securityContext
)
84 throw (com::sun::star::uno::RuntimeException
);
87 virtual rtl::OUString SAL_CALL
getImplementationName( )
88 throw (com::sun::star::uno::RuntimeException
);
90 virtual sal_Bool SAL_CALL
supportsService( const rtl::OUString
& ServiceName
)
91 throw (com::sun::star::uno::RuntimeException
);
93 virtual com::sun::star::uno::Sequence
< rtl::OUString
> SAL_CALL
getSupportedServiceNames( )
94 throw (com::sun::star::uno::RuntimeException
);
97 rtl::OUString
SEInitializer_NssImpl_getImplementationName()
98 throw ( com::sun::star::uno::RuntimeException
);
100 sal_Bool SAL_CALL
SEInitializer_NssImpl_supportsService( const rtl::OUString
& ServiceName
)
101 throw ( com::sun::star::uno::RuntimeException
);
103 com::sun::star::uno::Sequence
< rtl::OUString
> SAL_CALL
SEInitializer_NssImpl_getSupportedServiceNames( )
104 throw ( com::sun::star::uno::RuntimeException
);
106 com::sun::star::uno::Reference
< com::sun::star::uno::XInterface
>
107 SAL_CALL
SEInitializer_NssImpl_createInstance( const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
> & rSMgr
)
108 throw ( com::sun::star::uno::Exception
);