ROOT  6.06/09
Reference Guide
TRootSecContext.h
Go to the documentation of this file.
1 // @(#)root/auth:$Id$
2 // Author: G. Ganis 08/07/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, 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_TRootSecContext
13 #define ROOT_TRootSecContext
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TRootSecContext //
19 // //
20 // Special implementation of TSecContext //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TAuthenticate
25 #include "TAuthenticate.h"
26 #endif
27 #ifndef ROOT_TSecContext
28 #include "TSecContext.h"
29 #endif
30 
31 class TRootSecContext : public TSecContext {
32 
33 private:
34  Int_t fRSAKey; // Type of RSA key used
35 
37 
38 public:
39 
40  TRootSecContext(const char *url, Int_t meth, Int_t offset,
41  const char *id, const char *token,
42  TDatime expdate = kROOTTZERO, void *ctx = 0, Int_t key = 1);
43  TRootSecContext(const char *user, const char *host, Int_t meth, Int_t offset,
44  const char *id, const char *token,
45  TDatime expdate = kROOTTZERO, void *ctx = 0, Int_t key = 1);
46  virtual ~TRootSecContext();
47 
48  const char *AsString(TString &out);
49 
50  void DeActivate(Option_t *opt = "CR");
51  Int_t GetRSAKey() const { return fRSAKey; }
52 
53  void Print(Option_t *option = "F") const;
54 
55  ClassDef(TRootSecContext,0) // Class providing host specific authentication information
56 };
57 
58 
59 
60 #endif
void DeActivate(Option_t *opt="CR")
Set OffSet to -1 and expiring Date to default Remove from the list If globus, cleanup local stuff If ...
const char Option_t
Definition: RtypesCore.h:62
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TRootSecContext(const char *url, Int_t meth, Int_t offset, const char *id, const char *token, TDatime expdate=kROOTTZERO, void *ctx=0, Int_t key=1)
Ctor for SecContext object.
#define ClassDef(name, id)
Definition: Rtypes.h:254
char * out
Definition: TBase64.cxx:29
virtual ~TRootSecContext()
Dtor: delete (deActivate, local/remote cleanup, list removal) all what is still active.
Int_t GetRSAKey() const
void Print(Option_t *option="F") const
If opt is "F" (default) print object content.
const TDatime kROOTTZERO
Definition: TSecContext.h:36
const char * AsString(TString &out)
Returns short string with relevant information about this security context.
Bool_t CleanupSecContext(Bool_t all)
Ask remote client to cleanup security context 'ctx' If 'all', all sec context with the same host as c...
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Definition: TDatime.h:39