00001 // @(#)root/auth:$Id: TRootAuth.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Gerardo Ganis 08/07/05 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_TRootAuth 00013 #define ROOT_TRootAuth 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TRootAuth // 00019 // // 00020 // TVirtualAuth implementation based on the old client authentication // 00021 // code. // 00022 // // 00023 ////////////////////////////////////////////////////////////////////////// 00024 00025 #ifndef ROOT_TVirtualAuth 00026 #include "TVirtualAuth.h" 00027 #endif 00028 #ifndef ROOT_Rtypes 00029 #include "Rtypes.h" 00030 #endif 00031 00032 class TSecContext; 00033 class TSocket; 00034 00035 class TRootAuth : public TVirtualAuth { 00036 00037 public: 00038 TRootAuth() { } 00039 virtual ~TRootAuth() { } 00040 00041 TSecContext *Authenticate(TSocket *, const char *host, 00042 const char *user, Option_t *options = ""); 00043 Int_t ClientVersion(); 00044 void ErrorMsg(const char *where, Int_t ecode = -1); 00045 const char *Name() { return "Root"; } 00046 00047 ClassDef(TRootAuth,0) // client auth interface 00048 }; 00049 00050 #endif