Logo ROOT   6.14/05
Reference Guide
TRootAuth.h
Go to the documentation of this file.
1 // @(#)root/auth:$Id$
2 // Author: Gerardo Ganis 08/07/05
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_TRootAuth
13 #define ROOT_TRootAuth
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TRootAuth //
19 // //
20 // TVirtualAuth implementation based on the old client authentication //
21 // code. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include "TVirtualAuth.h"
26 #include "Rtypes.h"
27 
28 class TSecContext;
29 class TSocket;
30 
31 class TRootAuth : public TVirtualAuth {
32 
33 public:
34  TRootAuth() { }
35  virtual ~TRootAuth() { }
36 
37  TSecContext *Authenticate(TSocket *, const char *host,
38  const char *user, Option_t *options = "");
40  void ErrorMsg(const char *where, Int_t ecode = -1);
41  const char *Name() { return "Root"; }
42 
43  ClassDef(TRootAuth,0) // client auth interface
44 };
45 
46 #endif
virtual ~TRootAuth()
Definition: TRootAuth.h:35
const char Option_t
Definition: RtypesCore.h:62
TSecContext * Authenticate(TSocket *, const char *host, const char *user, Option_t *options="")
Runs authentication on socket s.
Definition: TRootAuth.cxx:36
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:320
TRootAuth()
Definition: TRootAuth.h:34
void ErrorMsg(const char *where, Int_t ecode=-1)
Print error string corresponding to ecode, prepending location.
Definition: TRootAuth.cxx:163
Int_t ClientVersion()
Return client version;.
Definition: TRootAuth.cxx:155
const char * Name()
Definition: TRootAuth.h:41