Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
24class TSocket;
25
26namespace ROOT::Deprecated {
27
28class TSecContext;
29
31
32public:
34 virtual ~TVirtualAuth() {}
35
36 virtual TSecContext *Authenticate(TSocket *, const char *host,
37 const char *user, Option_t *options) = 0;
38 virtual Int_t ClientVersion() = 0;
39 virtual void ErrorMsg(const char *where, Int_t ecode) = 0;
40 virtual const char *Name() = 0;
41
42 ClassDef(TVirtualAuth,0) // client auth interface
43};
44
45} // namespace ROOT::Deprecated
46
47using TVirtualAuth R__DEPRECATED(6, 42, "TVirtualAuth is deprecated. ROOT will not provide "
48 "socket authentication anymore but assumes that TSocket connections are between trusted processes. "
49 "Consider using SSH tunneling if you need secure network connections.") = ROOT::Deprecated::TVirtualAuth;
50
51#endif
#define R__DEPRECATED(MAJOR, MINOR, REASON)
Definition RConfig.hxx:510
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
#define ClassDef(name, id)
Definition Rtypes.h:344
virtual Int_t ClientVersion()=0
virtual void ErrorMsg(const char *where, Int_t ecode)=0
virtual const char * Name()=0
virtual TSecContext * Authenticate(TSocket *, const char *host, const char *user, Option_t *options)=0
This class implements client sockets.
Definition TSocket.h:54