# TAuthDetails

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

## class TAuthDetails : public TObject

| Inheritance Chart:

`TObject`

<-

`TAuthDetails`

        public:

                          TAuthDetails(const char* host, Int_t meth, Int_t offset, Bool_t reuse, const char* details, const char* token, Int_t key, const char* login)
                          TAuthDetails(const TAuthDetails&)
                  virtual ~TAuthDetails()
           static TClass* Class()
              const char* GetDetails() const
              const char* GetHost() const
              const char* GetLogin() const
                    Int_t GetMethod() const
                    Int_t GetOffSet() const
                    Int_t GetPort() const
                   Bool_t GetReUse() const
                    Int_t GetRSAKey() const
                    Int_t GetService() const
              const char* GetToken() const
          virtual TClass* IsA() const
             virtual void Print(Option_t* option) const
                     void SetLogin(const char* login)
                     void SetOffSet(Int_t offset)
                     void SetReUse(Bool_t reuse)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

                         TString fHost          Remote host and service (in form  host:port:service)
                         TString fRealHost      Remote host name
                           Int_t fPort          Remote Port number
          TAuthDetails::EService fService       Remote Service flag
                           Int_t fMethod        Authentication method used
                           Int_t fRemoteOffSet  offset in remote host auth tab file (in bytes)
                         TString fRemoteLogin   Remote login name (either auth user or one of the available anonymous)
                         TString fDetails       Details for the auth process (user, principal, ... )
                          Bool_t fReUse         Determines if established authentication context should be reused
                         TString fToken         Token identifying this authentication
                           Int_t fRSAKey        Type of RSA key used

        public:

          static const TAuthDetails::EService kROOTD
          static const TAuthDetails::EService kPROOFD

## Class Description

     TAuthDetails

     Contains details about successful authentications
     Used by THostAuth

TAuthDetails(const char *host, Int_t meth, Int_t offset, Bool_t reuse, const char *details, const char *token, Int_t key, const char *login)

     Create authdetails object.

const char* GetHost() const

     Return remote host name.

Int_t GetPort() const

     Return remote port. Returns -1 if port not found.

Int_t GetService() const

     Return remote service flag, either kROOTD, kPROOFD or kUNKNOWN.

void Print(Option_t *opt) const

     Print object content. If option is "e" print "established details.

### Inline Functions

                   Int_t GetMethod() const
             const char* GetDetails() const
                  Bool_t GetReUse() const
             const char* GetLogin() const
                   Int_t GetOffSet() const
             const char* GetToken() const
                   Int_t GetRSAKey() const
                    void SetOffSet(Int_t offset)
                    void SetReUse(Bool_t reuse)
                    void SetLogin(const char* login)
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
            TAuthDetails TAuthDetails(const TAuthDetails&)
                    void ~TAuthDetails()

Author: G. Ganis 19/03/2003
Last update: root/net:$Name: $:$Id: TAuthDetails.cxx,v 1.2 2003/09/07 18:25:46 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *