libzypp  13.10.6
zypp::media::AuthData Class Reference

Class for handling media authentication data. More...

#include <MediaUserAuth.h>

Inheritance diagram for zypp::media::AuthData:
zypp::media::CurlAuthData

Public Member Functions

 AuthData ()
 
 AuthData (const Url &url)
 
 AuthData (const std::string &username, const std::string &password)
 
virtual ~AuthData ()
 
virtual bool valid () const
 Checks validity of authentication data. More...
 
void setUrl (const Url &url)
 
void setUsername (const std::string &username)
 
void setPassword (const std::string &password)
 
Url url () const
 
std::string username () const
 
std::string password () const
 
virtual std::ostream & dumpOn (std::ostream &str) const
 
virtual std::ostream & dumpAsIniOn (std::ostream &str) const
 

Private Attributes

Url _url
 
std::string _username
 
std::string _password
 

Detailed Description

Class for handling media authentication data.

This is the most generic class containing only username and password members.

Definition at line 30 of file MediaUserAuth.h.

Constructor & Destructor Documentation

zypp::media::AuthData::AuthData ( )
inline

Definition at line 33 of file MediaUserAuth.h.

zypp::media::AuthData::AuthData ( const Url url)

Definition at line 31 of file MediaUserAuth.cc.

zypp::media::AuthData::AuthData ( const std::string &  username,
const std::string &  password 
)
inline

Definition at line 38 of file MediaUserAuth.h.

virtual zypp::media::AuthData::~AuthData ( )
inlinevirtual

Definition at line 42 of file MediaUserAuth.h.

Member Function Documentation

bool zypp::media::AuthData::valid ( ) const
virtual

Checks validity of authentication data.

Returns
true if the object contains non-empty username and non-empty password, false otherwise.

Reimplemented in zypp::media::CurlAuthData.

Definition at line 39 of file MediaUserAuth.cc.

void zypp::media::AuthData::setUrl ( const Url url)
inline

Definition at line 51 of file MediaUserAuth.h.

void zypp::media::AuthData::setUsername ( const std::string &  username)
inline

Definition at line 52 of file MediaUserAuth.h.

void zypp::media::AuthData::setPassword ( const std::string &  password)
inline

Definition at line 53 of file MediaUserAuth.h.

Url zypp::media::AuthData::url ( ) const
inline

Definition at line 55 of file MediaUserAuth.h.

std::string zypp::media::AuthData::username ( ) const
inline

Definition at line 56 of file MediaUserAuth.h.

std::string zypp::media::AuthData::password ( ) const
inline

Definition at line 57 of file MediaUserAuth.h.

std::ostream & zypp::media::AuthData::dumpOn ( std::ostream &  str) const
virtual

Reimplemented in zypp::media::CurlAuthData.

Definition at line 44 of file MediaUserAuth.cc.

std::ostream & zypp::media::AuthData::dumpAsIniOn ( std::ostream &  str) const
virtual

Definition at line 52 of file MediaUserAuth.cc.

Member Data Documentation

Url zypp::media::AuthData::_url
private

Definition at line 64 of file MediaUserAuth.h.

std::string zypp::media::AuthData::_username
private

Definition at line 65 of file MediaUserAuth.h.

std::string zypp::media::AuthData::_password
private

Definition at line 66 of file MediaUserAuth.h.


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