Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-25 09:30:03

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 TSocket;
0029 
0030 namespace ROOT::Deprecated {
0031 
0032 class TSecContext;
0033 
0034 class TRootAuth : public TVirtualAuth {
0035 
0036 public:
0037    TRootAuth() {}
0038    virtual ~TRootAuth() {}
0039 
0040    TSecContext *Authenticate(TSocket *, const char *host,
0041                              const char *user, Option_t *options = "") override;
0042    Int_t        ClientVersion() override;
0043    void         ErrorMsg(const char *where, Int_t ecode = -1) override;
0044    const char  *Name() override { return "Root"; }
0045 
0046    ClassDefOverride(TRootAuth,0)  // client auth interface
0047 };
0048 
0049 } // namespace ROOT::Deprecated
0050 
0051 using TRootAuth R__DEPRECATED(6, 42, "the RootAuth library is deprecated") = ROOT::Deprecated::TRootAuth;
0052 
0053 #endif