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

Public Member Functions

 certificate_impl ()
 
 certificate_impl (X509 *cert)
 
 ~certificate_impl ()
 
 certificate_impl (const certificate_impl &other)
 
 certificate_impl (certificate_impl &&other) noexcept
 
auto operator= (const certificate_impl &other) -> certificate_impl &
 
auto operator= (certificate_impl &&other) noexcept -> certificate_impl &
 
auto x509 () const noexcept -> X509 *
 
auto is_loaded () const noexcept -> bool
 

Private Attributes

X509 * x509_
 

Detailed Description

Definition at line 109 of file certificate.cpp.

Constructor & Destructor Documentation

◆ certificate_impl() [1/4]

kcenon::pacs::security::certificate_impl::certificate_impl ( )
inline

Definition at line 111 of file certificate.cpp.

◆ certificate_impl() [2/4]

kcenon::pacs::security::certificate_impl::certificate_impl ( X509 * cert)
inlineexplicit

Definition at line 113 of file certificate.cpp.

113: x509_(cert) {}

◆ ~certificate_impl()

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

Definition at line 115 of file certificate.cpp.

115 {
116 if (x509_) {
117 X509_free(x509_);
118 }
119 }

References x509_.

◆ certificate_impl() [3/4]

kcenon::pacs::security::certificate_impl::certificate_impl ( const certificate_impl & other)
inline

Definition at line 122 of file certificate.cpp.

122 {
123 if (other.x509_) {
124 x509_ = X509_dup(other.x509_);
125 } else {
126 x509_ = nullptr;
127 }
128 }

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

◆ certificate_impl() [4/4]

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

Definition at line 130 of file certificate.cpp.

131 : x509_(other.x509_) {
132 other.x509_ = nullptr;
133 }

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

Member Function Documentation

◆ is_loaded()

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

Definition at line 161 of file certificate.cpp.

161{ return x509_ != nullptr; }

References x509_.

◆ operator=() [1/2]

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

Definition at line 149 of file certificate.cpp.

149 {
150 if (this != &other) {
151 if (x509_) {
152 X509_free(x509_);
153 }
154 x509_ = other.x509_;
155 other.x509_ = nullptr;
156 }
157 return *this;
158 }

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

◆ operator=() [2/2]

auto kcenon::pacs::security::certificate_impl::operator= ( const certificate_impl & other) -> certificate_impl&
inline

Definition at line 135 of file certificate.cpp.

135 {
136 if (this != &other) {
137 if (x509_) {
138 X509_free(x509_);
139 }
140 if (other.x509_) {
141 x509_ = X509_dup(other.x509_);
142 } else {
143 x509_ = nullptr;
144 }
145 }
146 return *this;
147 }

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

◆ x509()

auto kcenon::pacs::security::certificate_impl::x509 ( ) const -> X509*
inlinenodiscardnoexcept

Definition at line 160 of file certificate.cpp.

160{ return x509_; }

References x509_.

Member Data Documentation

◆ x509_

X509* kcenon::pacs::security::certificate_impl::x509_
private

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