Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:32

0001 // Author: G. Ganis   08/07/05
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_TVirtualAuth
0012 #define ROOT_TVirtualAuth
0013 
0014 //////////////////////////////////////////////////////////////////////////
0015 //                                                                      //
0016 // TVirtualAuth                                                         //
0017 //                                                                      //
0018 // Abstract interface for client authentication code.                   //
0019 //                                                                      //
0020 //////////////////////////////////////////////////////////////////////////
0021 
0022 #include "Rtypes.h"
0023 
0024 class TSecContext;
0025 class TSocket;
0026 
0027 class TVirtualAuth {
0028 
0029 public:
0030    TVirtualAuth() {}
0031    virtual ~TVirtualAuth() {}
0032 
0033    virtual TSecContext *Authenticate(TSocket *, const char *host,
0034                                      const char *user, Option_t *options) = 0;
0035    virtual Int_t        ClientVersion() = 0;
0036    virtual void         ErrorMsg(const char *where, Int_t ecode) = 0;
0037    virtual const char  *Name() = 0;
0038 
0039    ClassDef(TVirtualAuth,0)  // client auth interface
0040 };
0041 
0042 #endif