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 51 virtual void SAL_CALL freeSecurityContext( const com::sun::star::uno::Reference< 52 com::sun::star::xml::crypto::XXMLSecurityContext >& securityContext ); 53 54 /* XServiceInfo */ 55 virtual rtl::OUString SAL_CALL getImplementationName( ); 56 57 virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName ); 58 59 virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames( ); 60 }; 61 62 rtl::OUString SEInitializer_NssImpl_getImplementationName(); 63 64 sal_Bool SAL_CALL SEInitializer_NssImpl_supportsService( const rtl::OUString& ServiceName ); 65 66 com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL SEInitializer_NssImpl_getSupportedServiceNames( ); 67 68 com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 69 SAL_CALL SEInitializer_NssImpl_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr); 70 71 #endif 72