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 //------------------------------------------------------------------------
75 DlgEnv& operator=( const DlgEnv& );
76 };
77
78}
79
80#endif /* SRC_XRDCL_XRDCLDLGENV_HH_ */
void Enable()
Enable delegation in the environment.
static DlgEnv & Instance()
void Disable()
Disable delegation in the environment.