Logo ROOT   6.14/05
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 #include "TObject.h"
26 
27 class TPluginHandler;
28 
29 class TAFS : public TObject {
30 private:
31  void *fToken; // AFS token
32 
35 
36 public:
37  TAFS(const char *fn = 0, const char *usr = 0, int life = -1);
38  virtual ~TAFS();
39 
40  Int_t Verify();
41 
42  static void SetUsePwdDialog(Bool_t on = kTRUE);
43 
44  ClassDef(TAFS,0) //AFS wrapper class
45 };
46 
47 #endif
48 
virtual ~TAFS()
Destructor.
Definition: TAFS.cxx:169
void * fToken
Definition: TAFS.h:31
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:33
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:34
#define ClassDef(name, id)
Definition: Rtypes.h:320
Mother of all ROOT objects.
Definition: TObject.h:37
const Bool_t kTRUE
Definition: RtypesCore.h:87
Definition: TAFS.h:29