20 const string HTTPBasicAuthorization::_mechanism =
"basic";
25 HTTPBasicAuthorization::
26 HTTPBasicAuthorization(
const HTTPAuthorization::Tokens &tokens,
27 const URLSpec &url,
bool is_proxy) :
28 HTTPAuthorization(tokens, url, is_proxy)
35 HTTPBasicAuthorization::
36 ~HTTPBasicAuthorization() {
43 const string &HTTPBasicAuthorization::
44 get_mechanism()
const {
53 string HTTPBasicAuthorization::
54 generate(HTTPEnum::Method,
const string &,
55 const string &username,
const string &) {
56 return "Basic " + base64_encode(username);
59 #endif // HAVE_OPENSSL A container for a URL, e.g.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.