TRootSecContext.h

Go to the documentation of this file.
00001 // @(#)root/auth:$Id: TRootSecContext.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: G. Ganis   08/07/2005
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TRootSecContext
00013 #define ROOT_TRootSecContext
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TRootSecContext                                                      //
00019 //                                                                      //
00020 // Special implementation of TSecContext                                //
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;              // Type of RSA key used
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)  // Class providing host specific authentication information
00056 };
00057 
00058 
00059 
00060 #endif

Generated on Tue Jul 5 14:28:09 2011 for ROOT_528-00b_version by  doxygen 1.5.1