#ifndef ROOT_THostAuth
#define ROOT_THostAuth
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
#ifndef ROOT_TList
#include "TList.h"
#endif
#ifndef ROOT_TRootSecContext
#include "TRootSecContext.h"
#endif
#ifndef ROOT_AuthConst
#include "AuthConst.h"
#endif
class THostAuth : public TObject {
private:
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;
void Create(const char *host, const char *user, Int_t nmeth = 0,
Int_t *authmeth = 0, char **details = 0);
public:
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 { return fNumMethods; }
Int_t GetMethod(Int_t idx) const { return fMethods[idx]; }
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 { return fFailure[idx]; }
Int_t GetSuccess(Int_t idx) const { return fSuccess[idx]; }
Bool_t IsActive() const { return fActive; }
void DeActivate() { fActive = kFALSE; }
void Activate() { fActive = kTRUE; }
void Reset();
const char *GetDetails(Int_t level);
const char *GetDetailsByIdx(Int_t idx) const { return fDetails[idx]; }
void SetDetails(Int_t level, const char *details);
const char *GetHost() const { return fHost; }
Int_t GetServer() const { return (Int_t)fServer; }
const char *GetUser() const { 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() const { return fSecContexts; }
void SetEstablished(TList *nl) { fSecContexts = 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);
ClassDef(THostAuth,1)
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
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.