XRootD
XrdCl::DlgEnv Class Reference

#include <XrdClDlgEnv.hh>

+ Collaboration diagram for XrdCl::DlgEnv:

Public Member Functions

 ~DlgEnv ()
 
void Disable ()
 Disable delegation in the environment. More...
 
void Enable ()
 Enable delegation in the environment. More...
 

Static Public Member Functions

static DlgEnvInstance ()
 

Detailed Description

Helper class for setting and unsetting the 'XrdSecGSIDELEGPROXY' environment variable.

Definition at line 21 of file XrdClDlgEnv.hh.

Constructor & Destructor Documentation

◆ ~DlgEnv()

XrdCl::DlgEnv::~DlgEnv ( )
inline

Destructor

Release the memory used to set environment

Definition at line 39 of file XrdClDlgEnv.hh.

40  {
41  unsetenv( "XrdSecGSIDELEGPROXY" );
42  }

Member Function Documentation

◆ Disable()

void XrdCl::DlgEnv::Disable ( )
inline

Disable delegation in the environment.

Definition at line 55 of file XrdClDlgEnv.hh.

56  {
57  setenv( "XrdSecGSIDELEGPROXY", "0", 1 );
58  }

Referenced by main().

+ Here is the caller graph for this function:

◆ Enable()

void XrdCl::DlgEnv::Enable ( )
inline

Enable delegation in the environment.

Definition at line 47 of file XrdClDlgEnv.hh.

48  {
49  setenv( "XrdSecGSIDELEGPROXY", "1", 1 );
50  }

Referenced by main().

+ Here is the caller graph for this function:

◆ Instance()

static DlgEnv& XrdCl::DlgEnv::Instance ( )
inlinestatic
Returns
: instance of DlgEnv

Definition at line 28 of file XrdClDlgEnv.hh.

29  {
30  static DlgEnv instance;
31  return instance;
32  }

Referenced by main().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: