Logo ROOT   6.18/05
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
28
29private:
30 Int_t fRSAKey; // Type of RSA key used
31
33
34public:
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
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
R__EXTERN const TDatime kROOTTZERO
Definition: TSecContext.h:30
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Definition: TDatime.h:37
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...
const char * AsString(TString &out)
Returns short string with relevant information about this security context.
Int_t GetRSAKey() const
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",...
virtual ~TRootSecContext()
Dtor: delete (deActivate, local/remote cleanup, list removal) all what is still active.
void Print(Option_t *option="F") const
If opt is "F" (default) print object content.
friend class TRootSecContext
Definition: TSecContext.h:38
Basic string class.
Definition: TString.h:131