Line data Source code
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 : */
12 : #ifndef CERTVALIDATION_HANDLER_HXX
13 : #define CERTVALIDATION_HANDLER_HXX
14 :
15 : #include <libcmis/libcmis.hxx>
16 :
17 : #include <com/sun/star/ucb/XCommandEnvironment.hpp>
18 :
19 : namespace cmis
20 : {
21 0 : class CertValidationHandler : public libcmis::CertValidationHandler
22 : {
23 : const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment>& m_xEnv;
24 : const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& m_xContext;
25 : OUString m_sHostname;
26 :
27 : public:
28 0 : CertValidationHandler (
29 : const com::sun::star::uno::Reference<
30 : com::sun::star::ucb::XCommandEnvironment>& xEnv,
31 : const com::sun::star::uno::Reference<
32 : com::sun::star::uno::XComponentContext>& xContext,
33 : const OUString& sHostname ):
34 0 : m_xEnv( xEnv ), m_xContext( xContext ), m_sHostname( sHostname ) { }
35 :
36 : bool validateCertificate( std::vector< std::string > certificates ) SAL_OVERRIDE;
37 : };
38 : }
39 :
40 : #endif
41 :
42 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|