library: libCore
#include "TSecContext.h"

TSecContext


class description - source file - inheritance tree (.pdf)

class TSecContext : public TObject

Inheritance Chart:
TObject
<-
TSecContext
    private:
void Cleanup() virtual Bool_t CleanupSecContext(Bool_t all) 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) TSecContext(const TSecContext&) virtual ~TSecContext() void AddForCleanup(Int_t port, Int_t proto, Int_t type) virtual const char* AsString(TString& out) const 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 TSecContext& operator=(const TSecContext&) 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)

Data Members

    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

Class Description

                                                                      
 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) : TObject()
 Ctor for SecContext object.

TSecContext(const char *url, Int_t meth, Int_t offset, const char *token, const char *id, TDatime expdate, void *ctx) : TObject()
 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 Cleanup()
 Cleanup 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"

void AddForCleanup(Int_t port, Int_t proto, Int_t type)
 Create a new TSecContextCleanup
 Internally is added to the list

Bool_t IsA(const char *methname)
 Checks if this security context is for method named 'methname'
 Case sensitive.

Bool_t IsActive() const
 Check remote OffSet and expiring Date

void Print(Option_t *opt) const
 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.



Inline Functions


               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
                void SetExpDate(TDatime expdate)
                void SetID(const char* id)
                void SetOffSet(Int_t offset)
                void SetUser(const char* user)
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
                void StreamerNVirtual(TBuffer& b)
         TSecContext TSecContext(const TSecContext&)
        TSecContext& operator=(const TSecContext&)


Author: G. Ganis 19/03/2003
Last update: root/net:$Name: $:$Id: TSecContext.cxx,v 1.10 2005/09/02 19:34:49 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.