live
Public Member Functions | Private Member Functions | Private Attributes
Authenticator Class Reference

#include <DigestAuthentication.hh>

Public Member Functions

 Authenticator ()
 
 Authenticator (char const *username, char const *password, Boolean passwordIsMD5=False)
 
 Authenticator (const Authenticator &orig)
 
Authenticatoroperator= (const Authenticator &rightSide)
 
Boolean operator< (const Authenticator *rightSide)
 
virtual ~Authenticator ()
 
void reset ()
 
void setRealmAndNonce (char const *realm, char const *nonce)
 
void setRealmAndRandomNonce (char const *realm)
 
void setUsernameAndPassword (char const *username, char const *password, Boolean passwordIsMD5=False)
 
char const * realm () const
 
char const * nonce () const
 
char const * username () const
 
char const * password () const
 
char const * computeDigestResponse (char const *cmd, char const *url) const
 
void reclaimDigestResponse (char const *responseStr) const
 

Private Member Functions

void resetRealmAndNonce ()
 
void resetUsernameAndPassword ()
 
void assignRealmAndNonce (char const *realm, char const *nonce)
 
void assignUsernameAndPassword (char const *username, char const *password, Boolean passwordIsMD5)
 
void assign (char const *realm, char const *nonce, char const *username, char const *password, Boolean passwordIsMD5)
 

Private Attributes

char * fRealm
 
char * fNonce
 
char * fUsername
 
char * fPassword
 
Boolean fPasswordIsMD5
 

Detailed Description

Definition at line 32 of file DigestAuthentication.hh.

Constructor & Destructor Documentation

Authenticator::Authenticator ( )
Authenticator::Authenticator ( char const *  username,
char const *  password,
Boolean  passwordIsMD5 = False 
)
Authenticator::Authenticator ( const Authenticator orig)
virtual Authenticator::~Authenticator ( )
virtual

Member Function Documentation

void Authenticator::assign ( char const *  realm,
char const *  nonce,
char const *  username,
char const *  password,
Boolean  passwordIsMD5 
)
private
void Authenticator::assignRealmAndNonce ( char const *  realm,
char const *  nonce 
)
private
void Authenticator::assignUsernameAndPassword ( char const *  username,
char const *  password,
Boolean  passwordIsMD5 
)
private
char const* Authenticator::computeDigestResponse ( char const *  cmd,
char const *  url 
) const
char const* Authenticator::nonce ( ) const
inline

Definition at line 53 of file DigestAuthentication.hh.

References fNonce.

53 { return fNonce; }
Boolean Authenticator::operator< ( const Authenticator rightSide)
Authenticator& Authenticator::operator= ( const Authenticator rightSide)
char const* Authenticator::password ( ) const
inline

Definition at line 55 of file DigestAuthentication.hh.

References fPassword.

55 { return fPassword; }
char const* Authenticator::realm ( ) const
inline

Definition at line 52 of file DigestAuthentication.hh.

References fRealm.

52 { return fRealm; }
void Authenticator::reclaimDigestResponse ( char const *  responseStr) const
void Authenticator::reset ( )
void Authenticator::resetRealmAndNonce ( )
private
void Authenticator::resetUsernameAndPassword ( )
private
void Authenticator::setRealmAndNonce ( char const *  realm,
char const *  nonce 
)
void Authenticator::setRealmAndRandomNonce ( char const *  realm)
void Authenticator::setUsernameAndPassword ( char const *  username,
char const *  password,
Boolean  passwordIsMD5 = False 
)
char const* Authenticator::username ( ) const
inline

Definition at line 54 of file DigestAuthentication.hh.

References fUsername.

54 { return fUsername; }

Field Documentation

char* Authenticator::fNonce
private

Definition at line 70 of file DigestAuthentication.hh.

Referenced by nonce().

char* Authenticator::fPassword
private

Definition at line 71 of file DigestAuthentication.hh.

Referenced by password().

Boolean Authenticator::fPasswordIsMD5
private

Definition at line 72 of file DigestAuthentication.hh.

char* Authenticator::fRealm
private

Definition at line 70 of file DigestAuthentication.hh.

Referenced by realm().

char* Authenticator::fUsername
private

Definition at line 71 of file DigestAuthentication.hh.

Referenced by username().


The documentation for this class was generated from the following file: