xrootd
Loading...
Searching...
No Matches
XrdClDlgEnv.hh
Go to the documentation of this file.
1/*
2 * XrdClDlgEnv.hh
3 *
4 * Created on: Oct 17, 2018
5 * Author: simonm
6 */
7
8#ifndef SRC_XRDCL_XRDCLDLGENV_HH_
9#define SRC_XRDCL_XRDCLDLGENV_HH_
10
11#include <cstdlib>
12
13
14namespace XrdCl
15{
16
17 //----------------------------------------------------------------------------
20 //----------------------------------------------------------------------------
21 class DlgEnv
22 {
23 public:
24
25 //------------------------------------------------------------------------
27 //------------------------------------------------------------------------
28 static DlgEnv& Instance()
29 {
30 static DlgEnv instance;
31 return instance;
32 }
33
34 //------------------------------------------------------------------------
38 //------------------------------------------------------------------------
40 {
41 unsetenv( "XrdSecGSIDELEGPROXY" );
42 }
43
44 //------------------------------------------------------------------------
46 //------------------------------------------------------------------------
47 void Enable()
48 {
49 setenv( "XrdSecGSIDELEGPROXY", "1", 1 );
50 }
51
52 //------------------------------------------------------------------------
54 //------------------------------------------------------------------------
55 void Disable()
56 {
57 setenv( "XrdSecGSIDELEGPROXY", "0", 1 );
58 }
59
60 private:
61
62 //------------------------------------------------------------------------
64 //------------------------------------------------------------------------
65 DlgEnv() { }
66
67 //------------------------------------------------------------------------
69 //------------------------------------------------------------------------
70 DlgEnv( const DlgEnv& );
71
72 //------------------------------------------------------------------------
74 //------------------------------------------------------------------------
76 };
77
78}
79
80#endif /* SRC_XRDCL_XRDCLDLGENV_HH_ */
Definition XrdClDlgEnv.hh:22
DlgEnv & operator=(const DlgEnv &)
Assigment operator - deleted.
void Enable()
Enable delegation in the environment.
Definition XrdClDlgEnv.hh:47
static DlgEnv & Instance()
Definition XrdClDlgEnv.hh:28
DlgEnv()
Default constructor.
Definition XrdClDlgEnv.hh:65
void Disable()
Disable delegation in the environment.
Definition XrdClDlgEnv.hh:55
~DlgEnv()
Definition XrdClDlgEnv.hh:39
DlgEnv(const DlgEnv &)
Copy constructor - deleted.
Definition XrdClAction.hh:34