File indexing completed on 2026-10-03 09:27:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TRootSecContext
0013 #define ROOT_TRootSecContext
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "TAuthenticate.h"
0025 #include "TSecContext.h"
0026
0027 namespace ROOT::Deprecated {
0028
0029 class TRootSecContext : public TSecContext {
0030
0031 private:
0032 Int_t fRSAKey;
0033
0034 Bool_t CleanupSecContext(Bool_t all) override;
0035
0036 public:
0037
0038 TRootSecContext(const char *url, Int_t meth, Int_t offset,
0039 const char *id, const char *token,
0040 TDatime expdate = kROOTTZERO, void *ctx = nullptr, Int_t key = 1);
0041 TRootSecContext(const char *user, const char *host, Int_t meth, Int_t offset,
0042 const char *id, const char *token,
0043 TDatime expdate = kROOTTZERO, void *ctx = nullptr, Int_t key = 1);
0044 virtual ~TRootSecContext();
0045
0046 const char *AsString(TString &out) override;
0047
0048 void DeActivate(Option_t *opt = "CR") override;
0049 Int_t GetRSAKey() const { return fRSAKey; }
0050
0051 void Print(Option_t *option = "F") const override;
0052
0053 ClassDefOverride(TRootSecContext,0)
0054 };
0055
0056 }
0057
0058 using TRootSecContext R__DEPRECATED(6, 42, "the RootAuth library is deprecated") = ROOT::Deprecated::TRootSecContext;
0059
0060 #endif