ROOT  6.06/09
Reference Guide
TVirtualAuth.h
Go to the documentation of this file.
1 // Author: G. Ganis 08/07/05
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_TVirtualAuth
12 #define ROOT_TVirtualAuth
13 
14 //////////////////////////////////////////////////////////////////////////
15 // //
16 // TVirtualAuth //
17 // //
18 // Abstract interface for client authentication code. //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #ifndef ROOT_Rtypes
23 #include "Rtypes.h"
24 #endif
25 
26 class TSecContext;
27 class TSocket;
28 
29 class TVirtualAuth {
30 
31 public:
33  virtual ~TVirtualAuth() { }
34 
35  virtual TSecContext *Authenticate(TSocket *, const char *host,
36  const char *user, Option_t *options) = 0;
37  virtual Int_t ClientVersion() = 0;
38  virtual void ErrorMsg(const char *where, Int_t ecode) = 0;
39  virtual const char *Name() = 0;
40 
41  ClassDef(TVirtualAuth,0) // client auth interface
42 };
43 
44 #endif
virtual void ErrorMsg(const char *where, Int_t ecode)=0
const char Option_t
Definition: RtypesCore.h:62
virtual ~TVirtualAuth()
Definition: TVirtualAuth.h:33
virtual TSecContext * Authenticate(TSocket *, const char *host, const char *user, Option_t *options)=0
virtual const char * Name()=0
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Int_t ClientVersion()=0