Logo ROOT   6.07/09
Reference Guide
TAFS.h
Go to the documentation of this file.
1 // @(#)root/auth:$Id$
2 // Author: G. Ganis, Nov 2006
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TAFS
13 #define ROOT_TAFS
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TAFS //
19 // //
20 // Utility class to acquire and handle an AFS tokens. //
21 // Interface to libTAFS.so. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #ifndef ROOT_TObject
26 #include "TObject.h"
27 #endif
28 
29 class TPluginHandler;
30 
31 class TAFS : public TObject {
32 private:
33  void *fToken; // AFS token
34 
37 
38 public:
39  TAFS(const char *fn = 0, const char *usr = 0, int life = -1);
40  virtual ~TAFS();
41 
42  Int_t Verify();
43 
44  static void SetUsePwdDialog(Bool_t on = kTRUE);
45 
46  ClassDef(TAFS,0) //AFS wrapper class
47 };
48 
49 #endif
50 
virtual ~TAFS()
Destructor.
Definition: TAFS.cxx:169
void * fToken
Definition: TAFS.h:33
TAFS(const char *fn=0, const char *usr=0, int life=-1)
Constructor: get AFS token for usr using credentials from file 'fpw'.
Definition: TAFS.cxx:62
static Bool_t fgUsePwdDialog
Definition: TAFS.h:35
Int_t Verify()
Return seconds to expiration (negative means expired)
Definition: TAFS.cxx:178
static void SetUsePwdDialog(Bool_t on=kTRUE)
Switch on/off usage of password dialog box.
Definition: TAFS.cxx:186
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
static TPluginHandler * fgPasswdDialog
Definition: TAFS.h:36
#define ClassDef(name, id)
Definition: Rtypes.h:254
Mother of all ROOT objects.
Definition: TObject.h:44
const Bool_t kTRUE
Definition: Rtypes.h:91
Definition: TAFS.h:31