ProxyAuthenticationHandler.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
3 
4  This file is part of the TerraLib - a Framework for building GIS enabled
5  applications.
6 
7  TerraLib is free software: you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation, either version 3 of the License,
10  or (at your option) any later version.
11 
12  TerraLib is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with TerraLib. See COPYING. If not, write to
19  TerraLib Team at <terralib-team@terralib.org>.
20  */
21 
22  /*!
23  \file terralib/core/uri/ProxyAuthenticationHandler.h
24 
25  \brief A class to handle the proxy authentication information.
26 
27  \author Mario Rocco Pettinati
28  */
29 
30 #ifndef __TERRALIB_CORE_URI_PROXYAUTHENTICATIONHANDLER_H__
31 #define __TERRALIB_CORE_URI_PROXYAUTHENTICATIONHANDLER_H__
32 
33  // TerraLib
34 #include "../Config.h"
35 
36 namespace te
37 {
38  namespace core
39  {
40  class ProxyInfo;
41 
42  /*!
43  \class URI
44 
45  \brief A class to handle the proxy authentication information.
46  */
48  {
49  public:
50 
52 
53  virtual ~ProxyAuthenticationHandler() = default;
54 
55  /*! \brief Gets the current proxy authentication information.
56  \param userName (output) The user name to be used in the proxy authentication
57  \param password (output) The password to be used in the proxy authentication
58  \return TRUE if both parameters had been successfully retrived. FALSE otherwise
59  */
60  virtual bool getAuthentication(std::string& userName, std::string& password) const = 0;
61  };
62 
63  } // end namespace core
64 } // end namespace te
65 
66 #endif // __TERRALIB_CORE_URI_PROXYAUTHENTICATIONHANDLER_H__
virtual ~ProxyAuthenticationHandler()=default
virtual bool getAuthentication(std::string &userName, std::string &password) const =0
Gets the current proxy authentication information.
TerraLib.
#define TECOREEXPORT
Definition: Config.h:52