OpenSceneGraph 3.6.5
AuthenticationMap
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGDB_AUTHENTICATIONMAP
15#define OSGDB_AUTHENTICATIONMAP 1
16
17#include <osg/Referenced>
18#include <osg/ref_ptr>
19
20#include <osgDB/Export>
21
22#include <string>
23#include <map>
24
25namespace osgDB {
26
27class Archive;
28
30{
31public:
32
35 {
36 BASIC = 1<<0,
37 DIGEST = 1<<1,
38 NEGOTIATE = 1<<2,
40 NTLM = 1<<3,
41 DIGEST_IE = 1<<4,
42 NTLM_WB = 1<<5,
43 ONLY = 1<<31,
46 };
47
48 AuthenticationDetails(const std::string& u, const std::string& p, HttpAuthentication auth=BASIC):
49 username(u),
50 password(p),
51 httpAuthentication(auth) {}
52
53 std::string username;
54 std::string password;
56
57protected:
59};
60
62{
63 public:
64
66
67
68 virtual void addAuthenticationDetails(const std::string& path, AuthenticationDetails* details);
69
70 virtual const AuthenticationDetails* getAuthenticationDetails(const std::string& path) const;
71
72 protected:
73
74 virtual ~AuthenticationMap() {}
75
76 typedef std::map<std::string, osg::ref_ptr<AuthenticationDetails> > AuthenticationDetailsMap;
78
79};
80
81}
82
83#endif // OSGDB_AUTHENTICATIONMAP
The osgDB library provides support for reading and writing scene graphs, providing a plugin framework...
Definition Archive:24
Base class for providing reference counted objects.
Definition Referenced:44
Definition AuthenticationMap:30
AuthenticationDetails(const std::string &u, const std::string &p, HttpAuthentication auth=BASIC)
Definition AuthenticationMap:48
virtual ~AuthenticationDetails()
Definition AuthenticationMap:58
HttpAuthentication httpAuthentication
Definition AuthenticationMap:55
std::string password
Definition AuthenticationMap:54
std::string username
Definition AuthenticationMap:53
HttpAuthentication
Http authentication techniques, see libcurl docs for details on names and associated functionality.
Definition AuthenticationMap:35
@ ANY
Definition AuthenticationMap:44
@ ANYSAFE
Definition AuthenticationMap:45
@ ONLY
Definition AuthenticationMap:43
@ DIGEST
Definition AuthenticationMap:37
@ BASIC
Definition AuthenticationMap:36
@ NEGOTIATE
Definition AuthenticationMap:38
@ DIGEST_IE
Definition AuthenticationMap:41
@ NTLM_WB
Definition AuthenticationMap:42
@ GSSNegotiate
Definition AuthenticationMap:39
@ NTLM
Definition AuthenticationMap:40
std::map< std::string, osg::ref_ptr< AuthenticationDetails > > AuthenticationDetailsMap
Definition AuthenticationMap:76
virtual void addAuthenticationDetails(const std::string &path, AuthenticationDetails *details)
AuthenticationMap()
Definition AuthenticationMap:65
virtual const AuthenticationDetails * getAuthenticationDetails(const std::string &path) const
virtual ~AuthenticationMap()
Definition AuthenticationMap:74
AuthenticationDetailsMap _authenticationMap
Definition AuthenticationMap:77
#define OSGDB_EXPORT
Definition Export:39

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.