12 #ifndef ROOT_THostAuth 13 #define ROOT_THostAuth 49 void Create(
const char *host,
const char *user,
Int_t nmeth = 0,
50 Int_t *authmeth = 0,
char **details = 0);
54 THostAuth(
const char *host,
const char *user,
55 Int_t nmeth = 0,
Int_t *authmeth = 0,
char **details = 0);
57 Int_t nmeth = 0,
Int_t *authmeth = 0,
char **details = 0);
96 void SetHost(
const char *host) { fHost = host; }
98 void SetUser(
const char *user) { fUser = user; }
107 Int_t offset,
const char *details,
109 void *ctx = 0,
Int_t key = -1);
void SetDetails(Int_t level, const char *details)
Set authentication details for specified level.
TString fDetails[kMAXSEC]
void AsString(TString &out) const
Return a static string with all info in a serialized form.
THostAuth()
Default constructor.
void PrintEstablished() const
Print info about established authentication vis-a-vis of this Host.
const char * GetDetails(Int_t level)
Return authentication details for specified level or "" if the specified level does not exist for thi...
void CountFailure(Int_t level)
Count failures for 'method'.
Bool_t HasMethod(Int_t level, Int_t *pos=0)
Return kTRUE if method 'level' is in the list.
const char * GetUser() const
Int_t GetSuccess(Int_t idx) const
void CountSuccess(Int_t level)
Count successes for 'method'.
void SetServer(Int_t server)
#define ClassDef(name, id)
void SetEstablished(TList *nl)
void Create(const char *host, const char *user, Int_t nmeth=0, Int_t *authmeth=0, char **details=0)
Create hostauth object.
TList * Established() const
void RemoveMethod(Int_t level)
Remove method 'meth' from the list, if there ...
Int_t GetFailure(Int_t idx) const
void AddMethod(Int_t level, const char *details=0)
Add method to the list.
void SetHost(const char *host)
void SetUser(const char *user)
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...
const char * GetHost() const
Int_t GetMethod(Int_t idx) const
void ReOrder(Int_t nmet, Int_t *fmet)
Reorder nmet methods according fmet[nmet].
Mother of all ROOT objects.
virtual ~THostAuth()
The dtor.
void SetFirst(Int_t level)
Set 'method' to be the first used (if in the list ...).
void Update(THostAuth *ha)
Update info with the one in ha Remaining methods, if any, get lower priority.
const char * GetDetailsByIdx(Int_t idx) const
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 authenticat...
virtual void Print(Option_t *option="") const
Print object content.
R__EXTERN const TDatime kROOTTZERO
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
void Reset()
Remove all methods, leaving Active status and list of associted TSceContexts unchanged.