1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SEINITIALIZERIMPL_HXX
25 #define _SEINITIALIZERIMPL_HXX
26 
27 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
28 #include <com/sun/star/xml/crypto/XSEInitializer.hpp>
29 
30 #include <cppuhelper/implbase1.hxx>
31 
32 #include <libxml/tree.h>
33 
34 #include "nssinitializer.hxx"
35 
36 class SEInitializer_NssImpl : public cppu::ImplInheritanceHelper1
37 <
38     ONSSInitializer,
39     ::com::sun::star::xml::crypto::XSEInitializer
40 >
41 {
42 public:
43     SEInitializer_NssImpl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF );
44     virtual ~SEInitializer_NssImpl();
45 
46     /* XSEInitializer */
47     virtual ::com::sun::star::uno::Reference<
48         ::com::sun::star::xml::crypto::XXMLSecurityContext >
49         SAL_CALL createSecurityContext( const ::rtl::OUString& )
50         throw (::com::sun::star::uno::RuntimeException);
51 
52     virtual void SAL_CALL freeSecurityContext( const com::sun::star::uno::Reference<
53         com::sun::star::xml::crypto::XXMLSecurityContext >& securityContext )
54         throw (com::sun::star::uno::RuntimeException);
55 
56     /* XServiceInfo */
57     virtual rtl::OUString SAL_CALL getImplementationName(  )
58         throw (::com::sun::star::uno::RuntimeException);
59 
60     virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName )
61         throw (::com::sun::star::uno::RuntimeException);
62 
63     virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(  )
64         throw (::com::sun::star::uno::RuntimeException);
65 };
66 
67 rtl::OUString SEInitializer_NssImpl_getImplementationName()
68     throw ( ::com::sun::star::uno::RuntimeException );
69 
70 sal_Bool SAL_CALL SEInitializer_NssImpl_supportsService( const rtl::OUString& ServiceName )
71     throw ( ::com::sun::star::uno::RuntimeException );
72 
73 com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL SEInitializer_NssImpl_getSupportedServiceNames(  )
74     throw ( ::com::sun::star::uno::RuntimeException );
75 
76 com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
77 SAL_CALL SEInitializer_NssImpl_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr)
78     throw ( ::com::sun::star::uno::Exception );
79 
80 #endif
81 
82