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
27namespace ROOT::Deprecated {
28
30
31private:
32 Int_t fRSAKey; // Type of RSA key used
33
35
36public:
37
39 const char *id, const char *token,
40 TDatime expdate = kROOTTZERO, void *ctx = nullptr, Int_t key = 1);
41 TRootSecContext(const char *user, const char *host, Int_t meth, Int_t offset,
42 const char *id, const char *token,
43 TDatime expdate = kROOTTZERO, void *ctx = nullptr, Int_t key = 1);
44 virtual ~TRootSecContext();
45
46 const char *AsString(TString &out) override;
47
48 void DeActivate(Option_t *opt = "CR") override;
49 Int_t GetRSAKey() const { return fRSAKey; }
50
51 void Print(Option_t *option = "F") const override;
52
53 ClassDefOverride(TRootSecContext,0) // Class providing host specific authentication information
54};
55
56}
57
58using TRootSecContext R__DEPRECATED(6, 42, "the RootAuth library is deprecated") = ROOT::Deprecated::TRootSecContext;
59
60#endif
#define R__DEPRECATED(MAJOR, MINOR, REASON)
Definition RConfig.hxx:510
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
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
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",...
virtual ~TRootSecContext()
Dtor: delete (deActivate, local/remote cleanup, list removal) all what is still active.
const char * AsString(TString &out) override
Returns short string with relevant information about this security context.
void Print(Option_t *option="F") const override
If opt is "F" (default) print object content.
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...
friend class ROOT::Deprecated::TRootSecContext
Definition TSecContext.h:38
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Definition TDatime.h:37
Basic string class.
Definition TString.h:138