Wolframe, 0.0.3

_Wolframe::AAAA::CRAMresponse Class Reference

Response for the authentication mech "Wolframe-CRAM". More...

#include <CRAM.hpp>

Public Member Functions

 CRAMresponse (const CRAMchallenge &challenge, const PasswordHash &pwdHash)
 Constructors. More...
 
 CRAMresponse (const std::string &challenge, const std::string &password)
 
 ~CRAMresponse ()
 
const unsigned char * response () const
 
std::size_t size () const
 
std::string toBCD () const
 
std::string toString () const
 
bool operator== (const CRAMresponse &rhs)
 True if the 2 CRAM responses are identical, false otherwise. More...
 
bool operator!= (const CRAMresponse &rhs)
 
bool operator== (const std::string &rhs)
 
bool operator!= (const std::string &rhs)
 

Private Attributes

unsigned char m_response [CRAM_RESPONSE_SIZE]
 

Detailed Description

Response for the authentication mech "Wolframe-CRAM".

Constructor & Destructor Documentation

_Wolframe::AAAA::CRAMresponse::CRAMresponse ( const CRAMchallenge challenge,
const PasswordHash pwdHash 
)

Constructors.

_Wolframe::AAAA::CRAMresponse::CRAMresponse ( const std::string &  challenge,
const std::string &  password 
)
Note
The challenge string is base64 encoded, including the password salt, with or without end padding. The password string is in plain text.
_Wolframe::AAAA::CRAMresponse::~CRAMresponse ( )

Member Function Documentation

bool _Wolframe::AAAA::CRAMresponse::operator!= ( const CRAMresponse rhs)
inline
bool _Wolframe::AAAA::CRAMresponse::operator!= ( const std::string &  rhs)
inline
bool _Wolframe::AAAA::CRAMresponse::operator== ( const CRAMresponse rhs)

True if the 2 CRAM responses are identical, false otherwise.

bool _Wolframe::AAAA::CRAMresponse::operator== ( const std::string &  rhs)

True if the CRAM response base64 encoding is equivalent to the given argument, false otherwise.

Note
The strings are base64 encoded, with or without end padding.
const unsigned char* _Wolframe::AAAA::CRAMresponse::response ( ) const
inline
std::size_t _Wolframe::AAAA::CRAMresponse::size ( ) const
inline
std::string _Wolframe::AAAA::CRAMresponse::toBCD ( ) const
std::string _Wolframe::AAAA::CRAMresponse::toString ( ) const

Member Data Documentation

unsigned char _Wolframe::AAAA::CRAMresponse::m_response[CRAM_RESPONSE_SIZE]
private

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