Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
32 Bool_t CleanupSecContext(Bool_t all) override;
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 = nullptr, 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 = nullptr, Int_t key = 1);
42 virtual ~TRootSecContext();
43
44 const char *AsString(TString &out) override;
45
46 void DeActivate(Option_t *opt = "CR") override;
47 Int_t GetRSAKey() const { return fRSAKey; }
48
49 void Print(Option_t *option = "F") const override;
50
51 ClassDefOverride(TRootSecContext,0) // Class providing host specific authentication information
52};
53
54#endif
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
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) override
Ask remote client to cleanup security context 'ctx' If 'all', all sec context with the same host as c...
void DeActivate(Option_t *opt="CR") override
Set OffSet to -1 and expiring Date to default Remove from the list If Opt contains "C" or "c",...
Int_t GetRSAKey() const
void Print(Option_t *option="F") const override
If opt is "F" (default) print object content.
const char * AsString(TString &out) override
Returns short string with relevant information about this security context.
virtual ~TRootSecContext()
Dtor: delete (deActivate, local/remote cleanup, list removal) all what is still active.
friend class TRootSecContext
Definition TSecContext.h:38
Basic string class.
Definition TString.h:139