library: libCore #include "TSecContext.h" |
TSecContext
class description - header file - source file - inheritance tree (.pdf)
private:
void Cleanup()
virtual Bool_t CleanupSecContext(Bool_t all)
protected:
TSecContext(const TSecContext&)
TSecContext& operator=(const TSecContext&)
public:
TSecContext(const char* url, Int_t meth, Int_t offset, const char* id, const char* token, TDatime expdate = kROOTTZERO, void* ctx = 0)
TSecContext(const char* user, const char* host, Int_t meth, Int_t offset, const char* id, const char* token, TDatime expdate = kROOTTZERO, void* ctx = 0)
virtual ~TSecContext()
void AddForCleanup(Int_t port, Int_t proto, Int_t type)
virtual const char* AsString(TString& out)
static TClass* Class()
virtual void DeActivate(Option_t* opt = "CR")
void* GetContext() const
TDatime GetExpDate() const
const char* GetHost() const
const char* GetID() const
Int_t GetMethod() const
const char* GetMethodName() const
Int_t GetOffSet() const
TList* GetSecContextCleanup() const
const char* GetToken() const
const char* GetUser() const
Bool_t IsA(const char* methodname)
virtual TClass* IsA() const
Bool_t IsActive() const
virtual void Print(Option_t* option = "F") const
void SetExpDate(TDatime expdate)
void SetID(const char* id)
void SetOffSet(Int_t offset)
void SetUser(const char* user)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
void* fContext Krb5, Globus: ptr to specific sec context
TList* fCleanup Points to list with info for remote cleanup
TDatime fExpDate Expiring date (one sec precision)
TString fHost Remote host name
TString fID String identifying uniquely this context
Int_t fMethod Authentication method used
TString fMethodName Authentication method name
Int_t fOffSet offset in remote host auth tab file (in bytes)
TString fToken Token identifying this authentication
TString fUser Remote login username
TSecContext
Contains details about an established security context
Used by THostAuth
TSecContext(const char *user, const char *host, Int_t meth, Int_t offset, const char *id, const char *token, TDatime expdate, void *ctx)
Ctor for SecContext object.
TSecContext(const char *url, Int_t meth, Int_t offset, const char *token, const char *id, TDatime expdate, void *ctx)
Ctor for SecContext object.
User and host from url = user@host .
~TSecContext()
Dtor: delete (deActivate, local/remote cleanup, list removal)
all what is still active
void DeActivate(Option_t *Opt)
Set OffSet to -1 and expiring Date to default
Remove from the list
If Opt contains "C" or "c", ask for remote cleanup
If Opt contains "R" or "r", remove from the list
Default Opt="CR"
Bool_t IsA(const char *methname)
Checks if this security context is for method named 'methname'
Case sensitive.
void Print(Option_t *opt)
If opt is "F" (default) print object content.
If opt is "<number>" print in special form for calls within THostAuth
with cardinality <number>
If opt is "S" prints short in-line form for calls within TFTP,
TSlave, TProof ...
const char * AsString(TString &out)
Returns short string with relevant information about this
security context
Bool_t CleanupSecContext(Bool_t)
Ask remote client to cleanup security context 'ctx'
If 'all', all sec context with the same host as ctx
are cleaned.
void SetID(const char *id)
Author: G. Ganis 19/03/2003
Last update: root/net:$Name: $:$Id: TSecContext.cxx,v 1.13 2006/05/24 15:10:46 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
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.