PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::security::private_key_impl Class Reference
Collaboration diagram for kcenon::pacs::security::private_key_impl:
Collaboration graph

Public Member Functions

 private_key_impl ()
 
 private_key_impl (EVP_PKEY *key)
 
 ~private_key_impl ()
 
 private_key_impl (const private_key_impl &)=delete
 
auto operator= (const private_key_impl &) -> private_key_impl &=delete
 
 private_key_impl (private_key_impl &&other) noexcept
 
auto operator= (private_key_impl &&other) noexcept -> private_key_impl &
 
auto pkey () const noexcept -> EVP_PKEY *
 
auto is_loaded () const noexcept -> bool
 

Private Attributes

EVP_PKEY * pkey_
 

Detailed Description

Definition at line 171 of file certificate.cpp.

Constructor & Destructor Documentation

◆ private_key_impl() [1/4]

kcenon::pacs::security::private_key_impl::private_key_impl ( )
inline

Definition at line 173 of file certificate.cpp.

◆ private_key_impl() [2/4]

kcenon::pacs::security::private_key_impl::private_key_impl ( EVP_PKEY * key)
inlineexplicit

Definition at line 175 of file certificate.cpp.

175: pkey_(key) {}

◆ ~private_key_impl()

kcenon::pacs::security::private_key_impl::~private_key_impl ( )
inline

Definition at line 177 of file certificate.cpp.

177 {
178 if (pkey_) {
179 EVP_PKEY_free(pkey_);
180 }
181 }

References pkey_.

◆ private_key_impl() [3/4]

kcenon::pacs::security::private_key_impl::private_key_impl ( const private_key_impl & )
delete

◆ private_key_impl() [4/4]

kcenon::pacs::security::private_key_impl::private_key_impl ( private_key_impl && other)
inlinenoexcept

Definition at line 187 of file certificate.cpp.

188 : pkey_(other.pkey_) {
189 other.pkey_ = nullptr;
190 }

References kcenon::pacs::security::other.

Member Function Documentation

◆ is_loaded()

auto kcenon::pacs::security::private_key_impl::is_loaded ( ) const -> bool
inlinenodiscardnoexcept

Definition at line 204 of file certificate.cpp.

204{ return pkey_ != nullptr; }

References pkey_.

◆ operator=() [1/2]

auto kcenon::pacs::security::private_key_impl::operator= ( const private_key_impl & ) -> private_key_impl &=delete
delete

◆ operator=() [2/2]

auto kcenon::pacs::security::private_key_impl::operator= ( private_key_impl && other) -> private_key_impl&
inlinenoexcept

Definition at line 192 of file certificate.cpp.

192 {
193 if (this != &other) {
194 if (pkey_) {
195 EVP_PKEY_free(pkey_);
196 }
197 pkey_ = other.pkey_;
198 other.pkey_ = nullptr;
199 }
200 return *this;
201 }

References kcenon::pacs::security::other, and pkey_.

◆ pkey()

auto kcenon::pacs::security::private_key_impl::pkey ( ) const -> EVP_PKEY*
inlinenodiscardnoexcept

Definition at line 203 of file certificate.cpp.

203{ return pkey_; }

References pkey_.

Member Data Documentation

◆ pkey_

EVP_PKEY* kcenon::pacs::security::private_key_impl::pkey_
private

Definition at line 207 of file certificate.cpp.

Referenced by is_loaded(), operator=(), pkey(), and ~private_key_impl().


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