1 | #include "cpr/auth.h" |
---|---|
2 | #include "cpr/util.h" |
3 | |
4 | namespace cpr { |
5 | Authentication::~Authentication() noexcept { |
6 | util::secureStringClear(s&: auth_string_); |
7 | } |
8 | |
9 | const char* Authentication::GetAuthString() const noexcept { |
10 | return auth_string_.c_str(); |
11 | } |
12 | |
13 | AuthMode Authentication::GetAuthMode() const noexcept { |
14 | return auth_mode_; |
15 | } |
16 | } // namespace cpr |
17 |