Logo ROOT  
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 #include "TAuthenticate.h"
25 #include "TSecContext.h"
26 
27 class TRootSecContext : public TSecContext {
28 
29 private:
30  Int_t fRSAKey; // Type of RSA key used
31 
33 
34 public:
35 
36  TRootSecContext(const char *url, Int_t meth, Int_t offset,
37  const char *id, const char *token,
38  TDatime expdate = kROOTTZERO, void *ctx = 0, Int_t key = 1);
39  TRootSecContext(const char *user, const char *host, Int_t meth, Int_t offset,
40  const char *id, const char *token,
41  TDatime expdate = kROOTTZERO, void *ctx = 0, Int_t key = 1);
42  virtual ~TRootSecContext();
43 
44  const char *AsString(TString &out);
45 
46  void DeActivate(Option_t *opt = "CR");
47  Int_t GetRSAKey() const { return fRSAKey; }
48 
49  void Print(Option_t *option = "F") const;
50 
51  ClassDef(TRootSecContext,0) // Class providing host specific authentication information
52 };
53 
54 
55 
56 #endif
kROOTTZERO
const R__EXTERN TDatime kROOTTZERO
Definition: TSecContext.h:30
TRootSecContext::fRSAKey
Int_t fRSAKey
Definition: TRootSecContext.h:36
TAuthenticate.h
TSecContext.h
TRootSecContext
Definition: TRootSecContext.h:27
TRootSecContext::DeActivate
void DeActivate(Option_t *opt="CR")
Set OffSet to -1 and expiring Date to default Remove from the list If Opt contains "C" or "c",...
Definition: TRootSecContext.cxx:79
TRootSecContext::CleanupSecContext
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...
Definition: TRootSecContext.cxx:113
TString
Definition: TString.h:136
TSecContext::TRootSecContext
friend class TRootSecContext
Definition: TSecContext.h:38
bool
TRootSecContext::~TRootSecContext
virtual ~TRootSecContext()
Dtor: delete (deActivate, local/remote cleanup, list removal) all what is still active.
Definition: TRootSecContext.cxx:67
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TSecContext
Definition: TSecContext.h:36
TRootSecContext::AsString
const char * AsString(TString &out)
Returns short string with relevant information about this security context.
Definition: TRootSecContext.cxx:247
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TRootSecContext::Print
void Print(Option_t *option="F") const
If opt is "F" (default) print object content.
Definition: TRootSecContext.cxx:192
TRootSecContext::GetRSAKey
Int_t GetRSAKey() const
Definition: TRootSecContext.h:53
TDatime
Definition: TDatime.h:37
int