ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
net
auth
inc
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
#ifndef ROOT_TVirtualAuth
26
#include "
TVirtualAuth.h
"
27
#endif
28
#ifndef ROOT_Rtypes
29
#include "
Rtypes.h
"
30
#endif
31
32
class
TSecContext
;
33
class
TSocket
;
34
35
class
TRootAuth
:
public
TVirtualAuth
{
36
37
public
:
38
TRootAuth
() { }
39
virtual
~TRootAuth
() { }
40
41
TSecContext
*
Authenticate
(
TSocket
*,
const
char
*host,
42
const
char
*user,
Option_t
*options =
""
);
43
Int_t
ClientVersion
();
44
void
ErrorMsg
(
const
char
*where,
Int_t
ecode = -1);
45
const
char
*
Name
() {
return
"Root"
; }
46
47
ClassDef
(
TRootAuth
,0)
// client auth interface
48
};
49
50
#endif
TRootAuth::~TRootAuth
virtual ~TRootAuth()
Definition:
TRootAuth.h:39
Rtypes.h
Option_t
const char Option_t
Definition:
RtypesCore.h:62
TRootAuth::Authenticate
TSecContext * Authenticate(TSocket *, const char *host, const char *user, Option_t *options="")
Runs authentication on socket s.
Definition:
TRootAuth.cxx:36
TSecContext
Definition:
TSecContext.h:42
Int_t
int Int_t
Definition:
RtypesCore.h:41
TRootAuth
Definition:
TRootAuth.h:35
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TVirtualAuth.h
TRootAuth::TRootAuth
TRootAuth()
Definition:
TRootAuth.h:38
TRootAuth::ErrorMsg
void ErrorMsg(const char *where, Int_t ecode=-1)
Print error string corresponding to ecode, prepending location.
Definition:
TRootAuth.cxx:163
TVirtualAuth
Definition:
TVirtualAuth.h:29
TSocket
Definition:
TSocket.h:76
TRootAuth::ClientVersion
Int_t ClientVersion()
Return client version;.
Definition:
TRootAuth.cxx:155
TRootAuth::Name
const char * Name()
Definition:
TRootAuth.h:45