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 213 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 215 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 217 of file certificate.cpp.

217: pkey_(key) {}

◆ ~private_key_impl()

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

Definition at line 219 of file certificate.cpp.

219 {
220 if (pkey_) {
221 EVP_PKEY_free(pkey_);
222 }
223 }

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 229 of file certificate.cpp.

230 : pkey_(other.pkey_) {
231 other.pkey_ = nullptr;
232 }

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 246 of file certificate.cpp.

246{ 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 234 of file certificate.cpp.

234 {
235 if (this != &other) {
236 if (pkey_) {
237 EVP_PKEY_free(pkey_);
238 }
239 pkey_ = other.pkey_;
240 other.pkey_ = nullptr;
241 }
242 return *this;
243 }

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

◆ pkey()

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

Definition at line 245 of file certificate.cpp.

245{ return pkey_; }

References pkey_.

Member Data Documentation

◆ pkey_

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

Definition at line 249 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: