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

Constructor & Destructor Documentation

◆ certificate_impl() [1/4]

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

Definition at line 153 of file certificate.cpp.

◆ certificate_impl() [2/4]

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

Definition at line 155 of file certificate.cpp.

155: x509_(cert) {}

◆ ~certificate_impl()

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

Definition at line 157 of file certificate.cpp.

157 {
158 if (x509_) {
159 X509_free(x509_);
160 }
161 }

References x509_.

◆ certificate_impl() [3/4]

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

Definition at line 164 of file certificate.cpp.

164 {
165 if (other.x509_) {
166 x509_ = X509_dup(other.x509_);
167 } else {
168 x509_ = nullptr;
169 }
170 }

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

173 : x509_(other.x509_) {
174 other.x509_ = nullptr;
175 }

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

Member Function Documentation

◆ is_loaded()

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

Definition at line 203 of file certificate.cpp.

203{ return x509_ != nullptr; }

References x509_.

◆ operator=() [1/2]

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

Definition at line 191 of file certificate.cpp.

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

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

177 {
178 if (this != &other) {
179 if (x509_) {
180 X509_free(x509_);
181 }
182 if (other.x509_) {
183 x509_ = X509_dup(other.x509_);
184 } else {
185 x509_ = nullptr;
186 }
187 }
188 return *this;
189 }

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

◆ x509()

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

Definition at line 202 of file certificate.cpp.

202{ 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: