live
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() [1/3]

Authenticator::Authenticator ( )

Referenced by Authenticator(), operator<(), and operator=().

◆ Authenticator() [2/3]

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

References False, password(), and username().

◆ Authenticator() [3/3]

Authenticator::Authenticator ( const Authenticator & orig)

References Authenticator().

◆ ~Authenticator()

virtual Authenticator::~Authenticator ( )
virtual

Member Function Documentation

◆ assign()

void Authenticator::assign ( char const * realm,
char const * nonce,
char const * username,
char const * password,
Boolean passwordIsMD5 )
private

References nonce(), password(), realm(), and username().

◆ assignRealmAndNonce()

void Authenticator::assignRealmAndNonce ( char const * realm,
char const * nonce )
private

References nonce(), and realm().

◆ assignUsernameAndPassword()

void Authenticator::assignUsernameAndPassword ( char const * username,
char const * password,
Boolean passwordIsMD5 )
private

References password(), and username().

◆ computeDigestResponse()

char const * Authenticator::computeDigestResponse ( char const * cmd,
char const * url ) const

◆ nonce()

char const * Authenticator::nonce ( ) const
inline

Definition at line 53 of file DigestAuthentication.hh.

53{ return fNonce; }

References fNonce.

Referenced by assign(), assignRealmAndNonce(), and setRealmAndNonce().

◆ operator<()

Boolean Authenticator::operator< ( const Authenticator * rightSide)

References Authenticator().

◆ operator=()

Authenticator & Authenticator::operator= ( const Authenticator & rightSide)

References Authenticator().

◆ password()

char const * Authenticator::password ( ) const
inline

Definition at line 55 of file DigestAuthentication.hh.

55{ return fPassword; }

References fPassword.

Referenced by assign(), assignUsernameAndPassword(), Authenticator(), and setUsernameAndPassword().

◆ realm()

char const * Authenticator::realm ( ) const
inline

Definition at line 52 of file DigestAuthentication.hh.

52{ return fRealm; }

References fRealm.

Referenced by assign(), assignRealmAndNonce(), setRealmAndNonce(), and setRealmAndRandomNonce().

◆ reclaimDigestResponse()

void Authenticator::reclaimDigestResponse ( char const * responseStr) const

◆ reset()

void Authenticator::reset ( )

◆ resetRealmAndNonce()

void Authenticator::resetRealmAndNonce ( )
private

◆ resetUsernameAndPassword()

void Authenticator::resetUsernameAndPassword ( )
private

◆ setRealmAndNonce()

void Authenticator::setRealmAndNonce ( char const * realm,
char const * nonce )

References nonce(), and realm().

◆ setRealmAndRandomNonce()

void Authenticator::setRealmAndRandomNonce ( char const * realm)

References realm().

◆ setUsernameAndPassword()

void Authenticator::setUsernameAndPassword ( char const * username,
char const * password,
Boolean passwordIsMD5 = False )

References False, password(), and username().

◆ username()

char const * Authenticator::username ( ) const
inline

Definition at line 54 of file DigestAuthentication.hh.

54{ return fUsername; }

References fUsername.

Referenced by assign(), assignUsernameAndPassword(), Authenticator(), and setUsernameAndPassword().

Field Documentation

◆ fNonce

char* Authenticator::fNonce
private

Definition at line 70 of file DigestAuthentication.hh.

Referenced by nonce().

◆ fPassword

char* Authenticator::fPassword
private

Definition at line 71 of file DigestAuthentication.hh.

Referenced by password().

◆ fPasswordIsMD5

Boolean Authenticator::fPasswordIsMD5
private

Definition at line 72 of file DigestAuthentication.hh.

◆ fRealm

char* Authenticator::fRealm
private

Definition at line 70 of file DigestAuthentication.hh.

Referenced by realm().

◆ fUsername

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: