MySQL 9.1.0
Source Code Documentation
keyring_common::data::Data Class Reference

Sensitive data storage. More...

#include <data.h>

Inheritance diagram for keyring_common::data::Data:
[legend]

Public Member Functions

 Data (const Sensitive_data &data, Type type)
 Constructor to create a data object. More...
 
 Data ()
 
 Data (Type type)
 
 Data (const Data &src)
 Copy constructor. More...
 
 Data (Data &&src) noexcept
 Move constructor. More...
 
Dataoperator= (const Data &src)
 
Dataoperator= (Data &&src) noexcept
 
virtual ~Data ()
 Destructor. More...
 
virtual Data get_data () const
 Return self. More...
 
Sensitive_data data () const
 Get data. More...
 
Type type () const
 Get data's type. More...
 
bool valid () const
 Status of object's validity. More...
 
void set_data (const Sensitive_data &data)
 Set data. More...
 
virtual void set_data (const Data &src)
 Set data. More...
 
void set_type (Type type)
 Set type. More...
 
bool operator== (const Data &other) const
 Comparison. More...
 

Protected Member Functions

void set_validity ()
 Set validity of the data object. More...
 

Protected Attributes

Sensitive_data data_
 Sensitive data. More...
 
Type type_
 Data type. More...
 
bool valid_ {false}
 Validity of Data object. More...
 

Detailed Description

Sensitive data storage.

Constructor & Destructor Documentation

◆ Data() [1/5]

keyring_common::data::Data::Data ( const Sensitive_data data,
Type  type 
)

Constructor to create a data object.

◆ Data() [2/5]

keyring_common::data::Data::Data ( )

◆ Data() [3/5]

keyring_common::data::Data::Data ( Type  type)
explicit

◆ Data() [4/5]

keyring_common::data::Data::Data ( const Data src)

Copy constructor.

◆ Data() [5/5]

keyring_common::data::Data::Data ( Data &&  src)
noexcept

Move constructor.

◆ ~Data()

keyring_common::data::Data::~Data ( )
virtual

Destructor.

Member Function Documentation

◆ data()

Sensitive_data keyring_common::data::Data::data ( ) const

Get data.

◆ get_data()

Data keyring_common::data::Data::get_data ( ) const
virtual

Return self.

Reimplemented in keyring_common::data::Data_extension< Extension >.

◆ operator=() [1/2]

Data & keyring_common::data::Data::operator= ( const Data src)
default

◆ operator=() [2/2]

Data & keyring_common::data::Data::operator= ( Data &&  src)
noexcept

◆ operator==()

bool keyring_common::data::Data::operator== ( const Data other) const

Comparison.

◆ set_data() [1/2]

void keyring_common::data::Data::set_data ( const Data src)
virtual

◆ set_data() [2/2]

void keyring_common::data::Data::set_data ( const Sensitive_data data)

Set data.

◆ set_type()

void keyring_common::data::Data::set_type ( Type  type)

Set type.

◆ set_validity()

void keyring_common::data::Data::set_validity ( )
protected

Set validity of the data object.

◆ type()

Type keyring_common::data::Data::type ( ) const

Get data's type.

◆ valid()

bool keyring_common::data::Data::valid ( ) const

Status of object's validity.

Member Data Documentation

◆ data_

Sensitive_data keyring_common::data::Data::data_
protected

Sensitive data.

◆ type_

Type keyring_common::data::Data::type_
protected

Data type.

◆ valid_

bool keyring_common::data::Data::valid_ {false}
protected

Validity of Data object.


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