Logo ROOT   6.10/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 #include "Rtypes.h"
23 
24 class TSecContext;
25 class TSocket;
26 
27 class TVirtualAuth {
28 
29 public:
31  virtual ~TVirtualAuth() { }
32 
33  virtual TSecContext *Authenticate(TSocket *, const char *host,
34  const char *user, Option_t *options) = 0;
35  virtual Int_t ClientVersion() = 0;
36  virtual void ErrorMsg(const char *where, Int_t ecode) = 0;
37  virtual const char *Name() = 0;
38 
39  ClassDef(TVirtualAuth,0) // client auth interface
40 };
41 
42 #endif
virtual void ErrorMsg(const char *where, Int_t ecode)=0
const char Option_t
Definition: RtypesCore.h:62
virtual ~TVirtualAuth()
Definition: TVirtualAuth.h:31
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:297
virtual Int_t ClientVersion()=0