Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TRootAuth.h
Go to the documentation of this file.
1// @(#)root/auth:$Id$
2// Author: Gerardo Ganis 08/07/05
3
4/*************************************************************************
5 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TRootAuth
13#define ROOT_TRootAuth
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TRootAuth //
19// //
20// TVirtualAuth implementation based on the old client authentication //
21// code. //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25#include "TVirtualAuth.h"
26#include "Rtypes.h"
27
28class TSocket;
29
30namespace ROOT::Deprecated {
31
32class TSecContext;
33
34class TRootAuth : public TVirtualAuth {
35
36public:
38 virtual ~TRootAuth() {}
39
40 TSecContext *Authenticate(TSocket *, const char *host,
41 const char *user, Option_t *options = "") override;
42 Int_t ClientVersion() override;
43 void ErrorMsg(const char *where, Int_t ecode = -1) override;
44 const char *Name() override { return "Root"; }
45
46 ClassDefOverride(TRootAuth,0) // client auth interface
47};
48
49} // namespace ROOT::Deprecated
50
51using TRootAuth R__DEPRECATED(6, 42, "the RootAuth library is deprecated") = ROOT::Deprecated::TRootAuth;
52
53#endif
#define R__DEPRECATED(MAJOR, MINOR, REASON)
Definition RConfig.hxx:510
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
TSecContext * Authenticate(TSocket *, const char *host, const char *user, Option_t *options="") override
Runs authentication on socket s.
Definition TRootAuth.cxx:36
Int_t ClientVersion() override
Return client version;.
Definition TRootAuth.cxx:91
const char * Name() override
Definition TRootAuth.h:44
void ErrorMsg(const char *where, Int_t ecode=-1) override
Print error string corresponding to ecode, prepending location.
Definition TRootAuth.cxx:99
This class implements client sockets.
Definition TSocket.h:54