Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TRootAuth.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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