12 #ifndef ROOT_TSecContext 13 #define ROOT_TSecContext 62 const char *
id,
const char *token,
63 TDatime expdate = kROOTTZERO,
void *ctx = 0);
65 const char *
id,
const char *token,
66 TDatime expdate = kROOTTZERO,
void *ctx = 0);
92 void SetUser(
const char *user) { fUser = user; }
118 fPort(port), fServerProtocol(proto), fServerType(type) { };
TSecContextCleanup(Int_t port, Int_t proto, Int_t type)
TSecContext(const TSecContext &)
copy constructor
const char * GetToken() const
void AddForCleanup(Int_t port, Int_t proto, Int_t type)
Create a new TSecContextCleanup Internally is added to the list.
virtual ~TSecContextCleanup()
TDatime GetExpDate() const
virtual void Print(Option_t *option="F") const
If opt is "F" (default) print object content.
void SetExpDate(TDatime expdate)
virtual ~TSecContext()
Dtor: delete (deActivate, local/remote cleanup, list removal) all what is still active.
const char * GetMethodName() const
const char * GetHost() const
Bool_t IsActive() const
Check remote OffSet and expiring Date.
#define ClassDef(name, id)
TList * GetSecContextCleanup() const
const char * GetPasswd() const
void SetUser(const char *user)
void Cleanup()
Cleanup what is still active.
TPwdCtx(const char *pwd, Bool_t pwh)
const char * GetUser() const
virtual Bool_t CleanupSecContext(Bool_t all)
Ask remote client to cleanup security context 'ctx' If 'all', all sec context with the same host as c...
Bool_t IsA(const char *methodname)
Checks if this security context is for method named 'methname' Case sensitive.
TSecContext & operator=(const TSecContext &)
assignement operator
void SetID(const char *id)
virtual void DeActivate(Option_t *opt="CR")
Set OffSet to -1 and expiring Date to default Remove from the list If Opt contains "C" or "c"...
virtual const char * AsString(TString &out)
Returns short string with relevant information about this security context.
const char * GetID() const
void * GetContext() const
Mother of all ROOT objects.
Int_t GetProtocol() const
void SetOffSet(Int_t offset)
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...