class THostAuth: public TObject


THostAuth

Contains details about host-specific authentication methods and the
result of their application.
Used by TAuthenticate.


Function Members (Methods)

public:
THostAuth()
THostAuth(const char* asstring)
THostAuth(THostAuth& ha)
THostAuth(const char* host, const char* user, Int_t authmeth, const char* details)
THostAuth(const char* host, const char* user, Int_t nmeth = 0, Int_t* authmeth = 0, char** details = 0)
THostAuth(const char* host, Int_t server, const char* user, Int_t authmeth, const char* details)
THostAuth(const char* host, Int_t server, const char* user, Int_t nmeth = 0, Int_t* authmeth = 0, char** details = 0)
virtual~THostAuth()
voidTObject::AbstractMethod(const char* method) const
voidActivate()
voidAddFirst(Int_t level, const char* details = 0)
voidAddMethod(Int_t level, const char* details = 0)
virtual voidTObject::AppendPad(Option_t* option = "")
voidAsString(TString& out) const
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
voidCountFailure(Int_t level)
voidCountSuccess(Int_t level)
TRootSecContext*CreateSecContext(const char* user, const char* host, Int_t meth, Int_t offset, const char* details, const char* token, TDatime expdate = kROOTTZERO, void* ctx = 0, Int_t key = -1)
voidDeActivate()
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
TList*Established() const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
const char*GetDetails(Int_t level)
const char*GetDetailsByIdx(Int_t idx) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetFailure(Int_t idx) const
const char*GetHost() const
virtual const char*TObject::GetIconName() const
Int_tGetMethod(Int_t idx) const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tGetServer() const
Int_tGetSuccess(Int_t idx) const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
const char*GetUser() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
Bool_tHasMethod(Int_t level, Int_t* pos = 0)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tIsActive() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
Int_tNumMethods() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
THostAuth&operator=(const THostAuth&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
voidPrintEstablished() const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidRemoveMethod(Int_t level)
voidReOrder(Int_t nmet, Int_t* fmet)
voidReset()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDetails(Int_t level, const char* details)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEstablished(TList* nl)
voidSetFirst(Int_t level)
voidSetHost(const char* host)
voidSetLast(Int_t level)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetServer(Int_t server)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUser(const char* user)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
voidUpdate(THostAuth* ha)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
voidCreate(const char* host, const char* user, Int_t nmeth = 0, Int_t* authmeth = 0, char** details = 0)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
Bool_tfActiveFlag used in cleaning/reset
TStringfDetails[6]AuthDetails
Int_tfFailure[6]Statistics of failed attempts / per method
TStringfHostHost
Int_tfMethods[6]AuthMethods
Int_tfNumMethodsNumber of AuthMethods
TList*fSecContextsList of TSecContexts related to this THostAuth
Char_tfServerServer (kSOCKD,kROOTD,kPROOFD)
Int_tfSuccess[6]Statistics of successful attempts / per method
TStringfUserUsername

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

THostAuth()
 Deafult constructor.
THostAuth(const char *host, const char *user, Int_t nmeth, Int_t *authmeth, char **details)
 Create hostauth object.
 'host' may contain also the server for whicb these directives
 are valid in the form 'host:server' or 'server://host'
 with server either "sock[d]", "root[d]", "proof[d]" or
 0, 1, 2, respectively.
THostAuth(const char* host, Int_t server, const char* user, Int_t nmeth = 0, Int_t* authmeth = 0, char** details = 0)
 Create hostauth object.
 'host' may contain also the server for whicb these directives
 are valid in the form 'host:server' or 'server://host'
 with server either "sock[d]", "root[d]", "proof[d]" or
 0, 1, 2, respectively.
THostAuth(const char* host, const char* user, Int_t authmeth, const char* details)
 Create hostauth object with one method only.
 'host' may contain also the server for whicb these directives
 are valid in the form 'host:server' or 'server://host'
THostAuth(const char *host, Int_t server, const char *user, Int_t authmeth, const char *details)
 Create hostauth object with one method only.
 'host' may contain also the server for whicb these directives
 are valid in the form 'host:server' or 'server://host'
void Create(const char* host, const char* user, Int_t nmeth = 0, Int_t* authmeth = 0, char** details = 0)
 Create hostauth object.
 'host' may contain also the server for whicb these directives
 are valid in the form 'host:server' or 'server://host'
 with server either "sock[d]", "root[d]", "proof[d]" or
 0, 1, 2, respectively.
THostAuth(const char *asstring)
 Create hostauth object from directives given as a compact string
 See THostAuth::AsString().
 Used in proof context only; fServer not set; to be set by hand
 with SetServer() method if really needed
THostAuth(THostAuth &ha)
 Copy ctor ...
void AddMethod(Int_t level, const char* details = 0)
 Add method to the list. If already there, change its
 details to 'details'
void RemoveMethod(Int_t level)
 Remove method 'meth' from the list, if there ...
void Reset()
 Remove all methods, leaving Active status and
 list of associted TSceContexts unchanged
~THostAuth()
 The dtor.
const char * GetDetails(Int_t level)
 Return authentication details for specified level
 or "" if the specified level does not exist for this host.
Bool_t HasMethod(Int_t level, Int_t* pos = 0)
 Return kTRUE if method 'level' is in the list
void SetDetails(Int_t level, const char* details)
 Set authentication details for specified level.
void Print(Option_t* option = "") const
 Print object content.
void PrintEstablished()
 Print info about established authentication vis-a-vis of this Host.
void ReOrder(Int_t nmet, Int_t* fmet)
 Reorder nmet methods according fmet[nmet]
void Update(THostAuth* ha)
 Update info with the one in ha
 Remaining methods, if any, get lower priority
void SetFirst(Int_t level)
 Set 'method' to be the first used (if in the list ...).
void SetLast(Int_t level)
 Set 'method' to be the last used (if in the list ...).
void AddFirst(Int_t level, const char* details = 0)
 Add new method in first position
 If already in the list, set as first method 'level' with
 authentication 'details'.
 Faster then AddMethod(method,details)+SetFirst(method).
void CountSuccess(Int_t level)
 Count successes for 'method'
void CountFailure(Int_t level)
 Count failures for 'method'
TRootSecContext * CreateSecContext(const char* user, const char* host, Int_t meth, Int_t offset, const char* details, const char* token, TDatime expdate = kROOTTZERO, void* ctx = 0, Int_t key = -1)
 Create a Security context and add it to local list
 Return pointer to it to be stored in TAuthenticate
void AsString(TString& out) const
 Return a static string with all info in a serialized form
Int_t NumMethods()
{ return fNumMethods; }
Int_t GetMethod(Int_t idx) const
{ return fMethods[idx]; }
Int_t GetFailure(Int_t idx) const
{ return fFailure[idx]; }
Int_t GetSuccess(Int_t idx) const
{ return fSuccess[idx]; }
Bool_t IsActive()
{ return fActive; }
void DeActivate()
{ fActive = kFALSE; }
void Activate()
{ fActive = kTRUE; }
const char * GetDetailsByIdx(Int_t idx) const
{ return fDetails[idx]; }
const char * GetHost()
{ return fHost; }
Int_t GetServer()
{ return (Int_t)fServer; }
const char * GetUser()
{ return fUser; }
void SetHost(const char* host)
{ fHost = host; }
void SetServer(Int_t server)
{ fServer = (Char_t)server; }
void SetUser(const char* user)
{ fUser = user; }
TList * Established()
{ return fSecContexts; }
void SetEstablished(TList* nl)
{ fSecContexts = nl; }

Author: G. Ganis 19/03/2003
Last change: root/auth:$Id: THostAuth.h 20882 2007-11-19 11:31:26Z rdm $
Last generated: 2008-07-11 13:54
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.