LLUserAuth Class Reference

#include <lluserauth.h>

Collaboration diagram for LLUserAuth:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::map< std::string,
std::string > 
response_t
typedef std::vector< response_toptions_t
 E_NO_RESPONSE_YET = -2
 E_DOWNLOADING = -1
 E_OK = 0
 E_COULDNT_RESOLVE_HOST
 E_SSL_PEER_CERTIFICATE
 E_SSL_CACERT
 E_SSL_CONNECT_ERROR
 E_UNHANDLED_ERROR
 E_LAST
enum  UserAuthcode {
  E_NO_RESPONSE_YET = -2, E_DOWNLOADING = -1, E_OK = 0, E_COULDNT_RESOLVE_HOST,
  E_SSL_PEER_CERTIFICATE, E_SSL_CACERT, E_SSL_CONNECT_ERROR, E_UNHANDLED_ERROR,
  E_LAST
}

Public Member Functions

 LLUserAuth ()
 ~LLUserAuth ()
void authenticate (const char *auth_uri, const char *auth_method, const char *firstname, const char *lastname, const char *passwd, const char *start, BOOL skip_optional_update, BOOL accept_tos, BOOL accept_critical_message, const LLUUID &viewer_digest, BOOL last_exec_froze, const std::vector< const char * > &requested_options, const std::string &hashed_mac, const std::string &hashed_volume_serial)
UserAuthcode authResponse ()
std::string errorMessage () const
const char * getResponse (const char *name) const
BOOL getOptions (const char *name, options_t &options) const
F64 getLastTransferRateBPS () const

Private Types

typedef std::map< std::string,
options_t
all_options_t

Private Member Functions

UserAuthcode parseResponse ()

Private Attributes

LLXMLRPCTransactionmTransaction
UserAuthcode mAuthResponse
std::string mErrorMessage
response_t mResponses
all_options_t mOptions
F64 mLastTransferRateBPS

Detailed Description

Definition at line 71 of file lluserauth.h.


Member Typedef Documentation

typedef std::map<std::string, options_t> LLUserAuth::all_options_t [private]

Definition at line 128 of file lluserauth.h.

typedef std::vector<response_t> LLUserAuth::options_t

Definition at line 92 of file lluserauth.h.

typedef std::map<std::string, std::string> LLUserAuth::response_t

Definition at line 91 of file lluserauth.h.


Member Enumeration Documentation

enum LLUserAuth::UserAuthcode

Enumerator:
E_NO_RESPONSE_YET 
E_DOWNLOADING 
E_OK 
E_COULDNT_RESOLVE_HOST 
E_SSL_PEER_CERTIFICATE 
E_SSL_CACERT 
E_SSL_CONNECT_ERROR 
E_UNHANDLED_ERROR 
E_LAST 

Definition at line 78 of file lluserauth.h.


Constructor & Destructor Documentation

LLUserAuth::LLUserAuth (  ) 

Definition at line 72 of file lluserauth.cpp.

References E_NO_RESPONSE_YET, and mAuthResponse.

LLUserAuth::~LLUserAuth (  ) 

Definition at line 79 of file lluserauth.cpp.

References mTransaction, and NULL.


Member Function Documentation

void LLUserAuth::authenticate ( const char *  auth_uri,
const char *  auth_method,
const char *  firstname,
const char *  lastname,
const char *  passwd,
const char *  start,
BOOL  skip_optional_update,
BOOL  accept_tos,
BOOL  accept_critical_message,
const LLUUID viewer_digest,
BOOL  last_exec_froze,
const std::vector< const char * > &  requested_options,
const std::string &  hashed_mac,
const std::string &  hashed_volume_serial 
)

Definition at line 86 of file lluserauth.cpp.

References LLUUID::asString(), E_NO_RESPONSE_YET, end, gChannelName, gCurrentVersion, llendl, llinfos, mAuthResponse, mTransaction, NULL, params, and request().

Referenced by idle_startup().

LLUserAuth::UserAuthcode LLUserAuth::authResponse (  ) 

Definition at line 168 of file lluserauth.cpp.

References E_COULDNT_RESOLVE_HOST, E_DOWNLOADING, E_SSL_CACERT, E_SSL_CONNECT_ERROR, E_SSL_PEER_CERTIFICATE, E_UNHANDLED_ERROR, llendl, llinfos, mAuthResponse, mErrorMessage, mLastTransferRateBPS, mTransaction, NULL, parseResponse(), LLXMLRPCTransaction::process(), LLXMLRPCTransaction::status(), LLXMLRPCTransaction::StatusDownloading, LLXMLRPCTransaction::statusMessage(), and LLXMLRPCTransaction::transferRate().

Referenced by idle_startup().

std::string LLUserAuth::errorMessage (  )  const [inline]

Definition at line 112 of file lluserauth.h.

References mErrorMessage.

Referenced by idle_startup().

F64 LLUserAuth::getLastTransferRateBPS (  )  const [inline]

Definition at line 119 of file lluserauth.h.

References mLastTransferRateBPS.

Referenced by idle_startup().

BOOL LLUserAuth::getOptions ( const char *  name,
options_t options 
) const

Definition at line 333 of file lluserauth.cpp.

References FALSE, mOptions, and TRUE.

Referenced by idle_startup().

const char * LLUserAuth::getResponse ( const char *  name  )  const

Definition at line 321 of file lluserauth.cpp.

References mResponses, and NULL.

Referenced by idle_startup().

LLUserAuth::UserAuthcode LLUserAuth::parseResponse (  )  [private]

Definition at line 257 of file lluserauth.cpp.

References E_OK, E_UNHANDLED_ERROR, lldebugs, llendl, llwarns, MAX_STRING, mOptions, mResponses, mTransaction, NULL, param, parseOptionInto(), LLXMLRPCTransaction::response(), and type.

Referenced by authResponse().


Member Data Documentation

UserAuthcode LLUserAuth::mAuthResponse [private]

Definition at line 124 of file lluserauth.h.

Referenced by authenticate(), authResponse(), and LLUserAuth().

std::string LLUserAuth::mErrorMessage [private]

Definition at line 125 of file lluserauth.h.

Referenced by authResponse(), and errorMessage().

F64 LLUserAuth::mLastTransferRateBPS [private]

Definition at line 134 of file lluserauth.h.

Referenced by authResponse(), and getLastTransferRateBPS().

all_options_t LLUserAuth::mOptions [private]

Definition at line 130 of file lluserauth.h.

Referenced by getOptions(), and parseResponse().

response_t LLUserAuth::mResponses [private]

Definition at line 129 of file lluserauth.h.

Referenced by getResponse(), and parseResponse().

LLXMLRPCTransaction* LLUserAuth::mTransaction [private]

Definition at line 122 of file lluserauth.h.

Referenced by authenticate(), authResponse(), parseResponse(), and ~LLUserAuth().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:55 2010 for Second Life Viewer by  doxygen 1.4.7