00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TRootSecContext
00013 #define ROOT_TRootSecContext
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ROOT_TAuthenticate
00025 #include "TAuthenticate.h"
00026 #endif
00027 #ifndef ROOT_TSecContext
00028 #include "TSecContext.h"
00029 #endif
00030
00031 class TRootSecContext : public TSecContext {
00032
00033 private:
00034 Int_t fRSAKey;
00035
00036 Bool_t CleanupSecContext(Bool_t all);
00037
00038 public:
00039
00040 TRootSecContext(const char *url, Int_t meth, Int_t offset,
00041 const char *id, const char *token,
00042 TDatime expdate = kROOTTZERO, void *ctx = 0, Int_t key = 1);
00043 TRootSecContext(const char *user, const char *host, Int_t meth, Int_t offset,
00044 const char *id, const char *token,
00045 TDatime expdate = kROOTTZERO, void *ctx = 0, Int_t key = 1);
00046 virtual ~TRootSecContext();
00047
00048 const char *AsString(TString &out);
00049
00050 void DeActivate(Option_t *opt = "CR");
00051 Int_t GetRSAKey() const { return fRSAKey; }
00052
00053 void Print(Option_t *option = "F") const;
00054
00055 ClassDef(TRootSecContext,0)
00056 };
00057
00058
00059
00060 #endif