#include <THostAuth.h>
Inheritance diagram for THostAuth:
Public Member Functions | |
THostAuth () | |
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 nmeth=0, Int_t *authmeth=0, char **details=0) | |
THostAuth (const char *host, const char *user, Int_t authmeth, const char *details) | |
THostAuth (const char *host, Int_t server, const char *user, Int_t authmeth, const char *details) | |
THostAuth (const char *asstring) | |
THostAuth (THostAuth &ha) | |
virtual | ~THostAuth () |
void | AsString (TString &out) const |
Int_t | NumMethods () const |
Int_t | GetMethod (Int_t idx) const |
Bool_t | HasMethod (Int_t level, Int_t *pos=0) |
void | AddMethod (Int_t level, const char *details=0) |
void | RemoveMethod (Int_t level) |
void | ReOrder (Int_t nmet, Int_t *fmet) |
void | Update (THostAuth *ha) |
void | SetFirst (Int_t level) |
void | AddFirst (Int_t level, const char *details=0) |
void | SetLast (Int_t level) |
void | CountFailure (Int_t level) |
void | CountSuccess (Int_t level) |
Int_t | GetFailure (Int_t idx) const |
Int_t | GetSuccess (Int_t idx) const |
Bool_t | IsActive () const |
void | DeActivate () |
void | Activate () |
void | Reset () |
const char * | GetDetails (Int_t level) |
const char * | GetDetailsByIdx (Int_t idx) const |
void | SetDetails (Int_t level, const char *details) |
const char * | GetHost () const |
Int_t | GetServer () const |
const char * | GetUser () const |
void | SetHost (const char *host) |
void | SetServer (Int_t server) |
void | SetUser (const char *user) |
TList * | Established () const |
void | SetEstablished (TList *nl) |
virtual void | Print (Option_t *option="") const |
void | PrintEstablished () const |
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) |
THostAuth () | |
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 nmeth=0, Int_t *authmeth=0, char **details=0) | |
THostAuth (const char *host, const char *user, Int_t authmeth, const char *details) | |
THostAuth (const char *host, Int_t server, const char *user, Int_t authmeth, const char *details) | |
THostAuth (const char *asstring) | |
THostAuth (THostAuth &ha) | |
virtual | ~THostAuth () |
void | AsString (TString &out) const |
Int_t | NumMethods () const |
Int_t | GetMethod (Int_t idx) const |
Bool_t | HasMethod (Int_t level, Int_t *pos=0) |
void | AddMethod (Int_t level, const char *details=0) |
void | RemoveMethod (Int_t level) |
void | ReOrder (Int_t nmet, Int_t *fmet) |
void | Update (THostAuth *ha) |
void | SetFirst (Int_t level) |
void | AddFirst (Int_t level, const char *details=0) |
void | SetLast (Int_t level) |
void | CountFailure (Int_t level) |
void | CountSuccess (Int_t level) |
Int_t | GetFailure (Int_t idx) const |
Int_t | GetSuccess (Int_t idx) const |
Bool_t | IsActive () const |
void | DeActivate () |
void | Activate () |
void | Reset () |
const char * | GetDetails (Int_t level) |
const char * | GetDetailsByIdx (Int_t idx) const |
void | SetDetails (Int_t level, const char *details) |
const char * | GetHost () const |
Int_t | GetServer () const |
const char * | GetUser () const |
void | SetHost (const char *host) |
void | SetServer (Int_t server) |
void | SetUser (const char *user) |
TList * | Established () const |
void | SetEstablished (TList *nl) |
virtual void | Print (Option_t *option="") const |
void | PrintEstablished () const |
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) |
Private Member Functions | |
void | Create (const char *host, const char *user, Int_t nmeth=0, Int_t *authmeth=0, char **details=0) |
void | Create (const char *host, const char *user, Int_t nmeth=0, Int_t *authmeth=0, char **details=0) |
Private Attributes | |
TString | fHost |
Char_t | fServer |
TString | fUser |
Int_t | fNumMethods |
Int_t | fMethods [kMAXSEC] |
TString | fDetails [kMAXSEC] |
Int_t | fSuccess [kMAXSEC] |
Int_t | fFailure [kMAXSEC] |
Bool_t | fActive |
TList * | fSecContexts |
TList * | fSecContexts |
Definition at line 44 of file THostAuth.h.
THostAuth::THostAuth | ( | ) |
THostAuth::THostAuth | ( | const char * | host, | |
const char * | user, | |||
Int_t | authmeth, | |||
const char * | details | |||
) |
THostAuth::THostAuth | ( | const char * | asstring | ) |
Definition at line 189 of file THostAuth.cxx.
References TString::Data(), fActive, fDetails, fFailure, fHost, fMethods, fNumMethods, fSecContexts, fServer, fSuccess, fUser, i, TString::Index(), kMAXSEC, kTRUE, TString::Remove(), TString::ReplaceAll(), and TString::Resize().
THostAuth::THostAuth | ( | THostAuth & | ha | ) |
Definition at line 256 of file THostAuth.cxx.
References Established(), fActive, fDetails, fFailure, fHost, fMethods, fNumMethods, fSecContexts, fServer, fSuccess, fUser, i, and kMAXSEC.
THostAuth::~THostAuth | ( | ) | [virtual] |
THostAuth::THostAuth | ( | ) |
THostAuth::THostAuth | ( | const char * | host, | |
const char * | user, | |||
Int_t | nmeth = 0 , |
|||
Int_t * | authmeth = 0 , |
|||
char ** | details = 0 | |||
) |
THostAuth::THostAuth | ( | const char * | host, | |
Int_t | server, | |||
const char * | user, | |||
Int_t | nmeth = 0 , |
|||
Int_t * | authmeth = 0 , |
|||
char ** | details = 0 | |||
) |
THostAuth::THostAuth | ( | const char * | host, | |
const char * | user, | |||
Int_t | authmeth, | |||
const char * | details | |||
) |
THostAuth::THostAuth | ( | const char * | host, | |
Int_t | server, | |||
const char * | user, | |||
Int_t | authmeth, | |||
const char * | details | |||
) |
THostAuth::THostAuth | ( | const char * | asstring | ) |
THostAuth::THostAuth | ( | THostAuth & | ha | ) |
virtual THostAuth::~THostAuth | ( | ) | [virtual] |
void THostAuth::Create | ( | const char * | host, | |
const char * | user, | |||
Int_t | nmeth = 0 , |
|||
Int_t * | authmeth = 0 , |
|||
char ** | details = 0 | |||
) | [private] |
Definition at line 94 of file THostAuth.cxx.
References TString::BeginsWith(), TString::Contains(), fActive, fDetails, fFailure, fHost, fMethods, fNumMethods, fSecContexts, fServer, fSuccess, fUser, TAuthenticate::GetDefaultDetails(), TSystem::Getenv(), TSystem::GetHostByName(), TSystem::GetUserInfo(), gSystem, i, TString::Index(), kMAXSEC, TSocket::kPROOFD, TSocket::kROOTD, TSocket::kSOCKD, kTRUE, TString::Length(), TString::Remove(), and u.
Referenced by THostAuth().
void THostAuth::AsString | ( | TString & | out | ) | const |
Definition at line 741 of file THostAuth.cxx.
References fDetails, fMethods, fNumMethods, Form(), GetHost(), GetUser(), and i.
Referenced by SendHostAuth().
Int_t THostAuth::NumMethods | ( | ) | const [inline] |
Definition at line 79 of file THostAuth.h.
References fNumMethods.
Referenced by TAuthenticate::Authenticate(), TAuthenticate::MergeHostAuthList(), TAuthenticate::ProofAuthSetup(), RecvHostAuth(), and Update().
Definition at line 80 of file THostAuth.h.
References fMethods.
Referenced by TAuthenticate::Authenticate(), TAuthenticate::ProofAuthSetup(), RecvHostAuth(), and Update().
Definition at line 387 of file THostAuth.cxx.
References fMethods, fNumMethods, i, kFALSE, and kTRUE.
Referenced by AddFirst(), AddMethod(), GetDetails(), TAuthenticate::ProofAuthSetup(), TAuthenticate::ReadRootAuthrc(), RecvHostAuth(), RemoveMethod(), ReOrder(), SetDetails(), SetFirst(), SetLast(), TAuthenticate::TAuthenticate(), and Update().
void THostAuth::AddMethod | ( | Int_t | level, | |
const char * | details = 0 | |||
) |
Definition at line 276 of file THostAuth.cxx.
References fDetails, fFailure, fMethods, fNumMethods, fSuccess, fUser, gDebug, TAuthenticate::GetDefaultDetails(), HasMethod(), kMAXSEC, Print(), and SetDetails().
Referenced by TAuthenticate::ProofAuthSetup(), TAuthenticate::ReadRootAuthrc(), RecvHostAuth(), SetDetails(), and TestAuth().
void THostAuth::RemoveMethod | ( | Int_t | level | ) |
Definition at line 310 of file THostAuth.cxx.
References fDetails, fFailure, fMethods, fNumMethods, fSuccess, gDebug, HasMethod(), i, k, Print(), and TString::Resize().
Referenced by TRootAuth::Authenticate(), TAuthenticate::Authenticate(), and TestAuth().
Definition at line 473 of file THostAuth.cxx.
References fDetails, fFailure, flag, fMethods, fNumMethods, fSuccess, fUser, gDebug, TAuthenticate::GetDefaultDetails(), HasMethod(), i, j, k, kMAXSEC, Print(), and TObject::Warning().
Referenced by TAuthenticate::ReadRootAuthrc().
void THostAuth::Update | ( | THostAuth * | ha | ) |
Definition at line 532 of file THostAuth.cxx.
References fDetails, fFailure, fMethods, fNumMethods, fSuccess, gDebug, GetDetailsByIdx(), GetFailure(), GetMethod(), GetSuccess(), HasMethod(), i, kMAXSEC, NumMethods(), Print(), and Reset().
Referenced by TAuthenticate::MergeHostAuthList(), TAuthenticate::ProofAuthSetup(), TAuthenticate::ReadRootAuthrc(), RecvHostAuth(), and TestAuth().
void THostAuth::SetFirst | ( | Int_t | level | ) |
Definition at line 583 of file THostAuth.cxx.
References fDetails, fFailure, fMethods, fSuccess, gDebug, HasMethod(), i, j, and Print().
Referenced by AddFirst(), and TAuthenticate::TAuthenticate().
void THostAuth::AddFirst | ( | Int_t | level, | |
const char * | details = 0 | |||
) |
Definition at line 648 of file THostAuth.cxx.
References fDetails, fFailure, fMethods, fNumMethods, fSuccess, fUser, gDebug, TAuthenticate::GetDefaultDetails(), HasMethod(), i, Print(), SetDetails(), and SetFirst().
Referenced by TAuthenticate::TAuthenticate(), and TestAuth().
void THostAuth::SetLast | ( | Int_t | level | ) |
Definition at line 615 of file THostAuth.cxx.
References fDetails, fFailure, fMethods, fNumMethods, fSuccess, gDebug, HasMethod(), i, j, and Print().
Referenced by TAuthenticate::Authenticate().
void THostAuth::CountFailure | ( | Int_t | level | ) |
Definition at line 708 of file THostAuth.cxx.
References fFailure, fMethods, fNumMethods, and i.
Referenced by TAuthenticate::Authenticate().
void THostAuth::CountSuccess | ( | Int_t | level | ) |
Definition at line 694 of file THostAuth.cxx.
References fMethods, fNumMethods, fSuccess, and i.
Referenced by TAuthenticate::Authenticate().
Bool_t THostAuth::IsActive | ( | ) | const [inline] |
Definition at line 93 of file THostAuth.h.
References fActive.
Referenced by TAuthenticate::MergeHostAuthList().
void THostAuth::DeActivate | ( | ) | [inline] |
Definition at line 94 of file THostAuth.h.
References fActive, and kFALSE.
Referenced by TAuthenticate::MergeHostAuthList().
void THostAuth::Activate | ( | ) | [inline] |
void THostAuth::Reset | ( | ) |
Definition at line 343 of file THostAuth.cxx.
References fDetails, fFailure, fMethods, fNumMethods, fSuccess, i, and TString::Resize().
Referenced by TestAuth(), and Update().
const char * THostAuth::GetDetails | ( | Int_t | level | ) |
Definition at line 370 of file THostAuth.cxx.
References empty, fDetails, gDebug, HasMethod(), i, and TObject::Info().
Referenced by TAuthenticate::Authenticate(), TRootAuth::Authenticate(), TAuthenticate::ProofAuthSetup(), and RecvHostAuth().
const char* THostAuth::GetDetailsByIdx | ( | Int_t | idx | ) | const [inline] |
void THostAuth::SetDetails | ( | Int_t | level, | |
const char * | details | |||
) |
Definition at line 403 of file THostAuth.cxx.
References AddMethod(), fDetails, fUser, TAuthenticate::GetDefaultDetails(), HasMethod(), and i.
Referenced by AddFirst(), AddMethod(), TRootAuth::Authenticate(), and TAuthenticate::ReadRootAuthrc().
const char* THostAuth::GetHost | ( | void | ) | const [inline] |
Definition at line 102 of file THostAuth.h.
References fHost.
Referenced by AsString(), TAuthenticate::GetHostAuth(), TAuthenticate::HasHostAuth(), TAuthenticate::MergeHostAuthList(), TAuthenticate::ProofAuthSetup(), TAuthenticate::ReadRootAuthrc(), RecvHostAuth(), and TAuthenticate::TAuthenticate().
Int_t THostAuth::GetServer | ( | ) | const [inline] |
Definition at line 103 of file THostAuth.h.
References fServer.
Referenced by TAuthenticate::GetHostAuth(), TAuthenticate::HasHostAuth(), TAuthenticate::MergeHostAuthList(), TAuthenticate::ReadRootAuthrc(), and TAuthenticate::TAuthenticate().
const char* THostAuth::GetUser | ( | ) | const [inline] |
Definition at line 104 of file THostAuth.h.
References fUser.
Referenced by AsString(), TAuthenticate::GetHostAuth(), TAuthenticate::HasHostAuth(), TAuthenticate::MergeHostAuthList(), TAuthenticate::ProofAuthSetup(), TAuthenticate::ReadRootAuthrc(), and RecvHostAuth().
void THostAuth::SetHost | ( | const char * | host | ) | [inline] |
Definition at line 106 of file THostAuth.h.
References fHost.
Referenced by TAuthenticate::TAuthenticate().
void THostAuth::SetServer | ( | Int_t | server | ) | [inline] |
void THostAuth::SetUser | ( | const char * | user | ) | [inline] |
TList* THostAuth::Established | ( | ) | const [inline] |
Definition at line 110 of file THostAuth.h.
References fSecContexts.
Referenced by TAuthenticate::AuthExists(), TAuthenticate::RemoveSecContext(), TAuthenticate::TAuthenticate(), TestAuth(), and THostAuth().
void THostAuth::SetEstablished | ( | TList * | nl | ) | [inline] |
void THostAuth::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TObject.
Definition at line 424 of file THostAuth.cxx.
References TString::Data(), fDetails, fFailure, fHost, fMethods, fNumMethods, fServer, fSuccess, fUser, TAuthenticate::GetAuthMethod(), i, TObject::Info(), and TSocket::kPROOFD.
Referenced by AddFirst(), AddMethod(), TAuthenticate::GetHostAuth(), RemoveMethod(), ReOrder(), SetFirst(), SetLast(), TAuthenticate::Show(), TestAuth(), and Update().
void THostAuth::PrintEstablished | ( | ) | const |
Definition at line 448 of file THostAuth.cxx.
References TString::Data(), fHost, fSecContexts, TCollection::GetSize(), TObject::Info(), k, and TSecContext::Print().
Referenced by TAuthenticate::Show().
TRootSecContext * THostAuth::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 | |||
) |
Definition at line 722 of file THostAuth.cxx.
References TList::Add(), fSecContexts, and TSecContext::IsActive().
Referenced by TAuthenticate::AuthExists(), TAuthenticate::ClearAuth(), GlobusAuthenticate(), Krb5Authenticate(), TAuthenticate::RfioAuth(), SRPAuthenticate(), and TAuthenticate::SshAuth().
void THostAuth::Create | ( | const char * | host, | |
const char * | user, | |||
Int_t | nmeth = 0 , |
|||
Int_t * | authmeth = 0 , |
|||
char ** | details = 0 | |||
) | [private] |
void THostAuth::AsString | ( | TString & | out | ) | const |
Int_t THostAuth::NumMethods | ( | ) | const [inline] |
void THostAuth::AddMethod | ( | Int_t | level, | |
const char * | details = 0 | |||
) |
void THostAuth::RemoveMethod | ( | Int_t | level | ) |
void THostAuth::Update | ( | THostAuth * | ha | ) |
void THostAuth::SetFirst | ( | Int_t | level | ) |
void THostAuth::AddFirst | ( | Int_t | level, | |
const char * | details = 0 | |||
) |
void THostAuth::SetLast | ( | Int_t | level | ) |
void THostAuth::CountFailure | ( | Int_t | level | ) |
void THostAuth::CountSuccess | ( | Int_t | level | ) |
Bool_t THostAuth::IsActive | ( | ) | const [inline] |
void THostAuth::DeActivate | ( | ) | [inline] |
void THostAuth::Activate | ( | ) | [inline] |
void THostAuth::Reset | ( | ) |
const char* THostAuth::GetDetails | ( | Int_t | level | ) |
const char* THostAuth::GetDetailsByIdx | ( | Int_t | idx | ) | const [inline] |
void THostAuth::SetDetails | ( | Int_t | level, | |
const char * | details | |||
) |
const char* THostAuth::GetHost | ( | void | ) | const [inline] |
Int_t THostAuth::GetServer | ( | ) | const [inline] |
const char* THostAuth::GetUser | ( | ) | const [inline] |
void THostAuth::SetHost | ( | const char * | host | ) | [inline] |
void THostAuth::SetServer | ( | Int_t | server | ) | [inline] |
void THostAuth::SetUser | ( | const char * | user | ) | [inline] |
TList* THostAuth::Established | ( | ) | const [inline] |
void THostAuth::SetEstablished | ( | TList * | nl | ) | [inline] |
virtual void THostAuth::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TObject.
void THostAuth::PrintEstablished | ( | ) | const |
TRootSecContext* THostAuth::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 | |||
) |
TString THostAuth::fHost [private] |
Definition at line 47 of file THostAuth.h.
Referenced by Create(), GetHost(), Print(), PrintEstablished(), SetHost(), and THostAuth().
Char_t THostAuth::fServer [private] |
Definition at line 48 of file THostAuth.h.
Referenced by Create(), GetServer(), Print(), SetServer(), and THostAuth().
TString THostAuth::fUser [private] |
Definition at line 49 of file THostAuth.h.
Referenced by AddFirst(), AddMethod(), Create(), GetUser(), Print(), ReOrder(), SetDetails(), SetUser(), and THostAuth().
Int_t THostAuth::fNumMethods [private] |
Definition at line 50 of file THostAuth.h.
Referenced by AddFirst(), AddMethod(), AsString(), CountFailure(), CountSuccess(), Create(), HasMethod(), NumMethods(), Print(), RemoveMethod(), ReOrder(), Reset(), SetLast(), THostAuth(), and Update().
Int_t THostAuth::fMethods [private] |
Definition at line 51 of file THostAuth.h.
Referenced by AddFirst(), AddMethod(), AsString(), CountFailure(), CountSuccess(), Create(), GetMethod(), HasMethod(), Print(), RemoveMethod(), ReOrder(), Reset(), SetFirst(), SetLast(), THostAuth(), and Update().
TString THostAuth::fDetails [private] |
Definition at line 52 of file THostAuth.h.
Referenced by AddFirst(), AddMethod(), AsString(), Create(), GetDetails(), GetDetailsByIdx(), Print(), RemoveMethod(), ReOrder(), Reset(), SetDetails(), SetFirst(), SetLast(), THostAuth(), and Update().
Int_t THostAuth::fSuccess [private] |
Definition at line 53 of file THostAuth.h.
Referenced by AddFirst(), AddMethod(), CountSuccess(), Create(), GetSuccess(), Print(), RemoveMethod(), ReOrder(), Reset(), SetFirst(), SetLast(), THostAuth(), and Update().
Int_t THostAuth::fFailure [private] |
Definition at line 54 of file THostAuth.h.
Referenced by AddFirst(), AddMethod(), CountFailure(), Create(), GetFailure(), Print(), RemoveMethod(), ReOrder(), Reset(), SetFirst(), SetLast(), THostAuth(), and Update().
Bool_t THostAuth::fActive [private] |
Definition at line 55 of file THostAuth.h.
Referenced by Activate(), Create(), DeActivate(), IsActive(), and THostAuth().
TList* THostAuth::fSecContexts [private] |
Definition at line 57 of file THostAuth.h.
Referenced by Create(), CreateSecContext(), Established(), PrintEstablished(), SetEstablished(), THostAuth(), and ~THostAuth().
TList* THostAuth::fSecContexts [private] |
Definition at line 57 of file THostAuth.h.