libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
keepass::Entry::Attachment Class Referencefinal

A file attachment of an entry. More...

#include <entry.hh>

Public Member Functions

const std::string & name () const
 Returns the attachment name.
 
void set_name (const std::string &name)
 Sets the attachment name.
 
std::shared_ptr< Binary > binary () const
 Returns the attachment binary payload.
 
void set_binary (std::shared_ptr< Binary > binary)
 Sets the attachment binary payload.
 
std::string ToJson (bool include_data=false) const
 Serializes the attachment to a JSON fragment.
 
bool operator== (const Attachment &other) const
 Equality comparison.
 
bool operator!= (const Attachment &other) const
 Inequality comparison.
 

Detailed Description

A file attachment of an entry.

Associates a name with a binary payload.

Member Function Documentation

◆ ToJson()

std::string keepass::Entry::Attachment::ToJson ( bool  include_data = false) const

Serializes the attachment to a JSON fragment.

Parameters
include_dataInclude the payload as base64 in a data_base64 member (default: metadata only).

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