|
cxxmcp 1.1.6
C++ MCP SDK
|
Small owning string wrapper that zeroizes stored bytes on reset and destruction. More...
#include <dpop.hpp>
Public Member Functions | |
| SecureString (const char *value) | |
| SecureString (std::string value) | |
| SecureString (std::string_view value) | |
| SecureString (const SecureString &)=default | |
| SecureString & | operator= (const SecureString &)=default |
| SecureString (SecureString &&other) noexcept | |
| SecureString & | operator= (SecureString &&other) noexcept |
| SecureString & | operator= (std::string value) |
| void | reset (std::string value={}) |
| std::string_view | view () const noexcept |
| const std::string & | str () const noexcept |
| bool | empty () const noexcept |
| std::size_t | size () const noexcept |
Small owning string wrapper that zeroizes stored bytes on reset and destruction.
This is not a substitute for OS-backed locked memory, but it prevents SDK auth key material from being kept in an ordinary std::string field with no cleanup policy.