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

Authenticator::Authenticator ( )

◆ Authenticator() [2/3]

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

◆ Authenticator() [3/3]

Authenticator::Authenticator ( const Authenticator orig)

◆ ~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

◆ assignRealmAndNonce()

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

◆ assignUsernameAndPassword()

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

◆ 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.

◆ operator<()

Boolean Authenticator::operator< ( const Authenticator rightSide)

◆ operator=()

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

◆ password()

char const* Authenticator::password ( ) const
inline

Definition at line 55 of file DigestAuthentication.hh.

55 { return fPassword; }

References fPassword.

◆ realm()

char const* Authenticator::realm ( ) const
inline

Definition at line 52 of file DigestAuthentication.hh.

52 { return fRealm; }

References fRealm.

◆ 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 
)

◆ setRealmAndRandomNonce()

void Authenticator::setRealmAndRandomNonce ( char const *  realm)

◆ setUsernameAndPassword()

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

◆ username()

char const* Authenticator::username ( ) const
inline

Definition at line 54 of file DigestAuthentication.hh.

54 { return fUsername; }

References fUsername.

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: