|
PACS System 0.1.0
PACS DICOM system library
|
#include <certificate.h>

Public Member Functions | |
| private_key () | |
| Default constructor - creates an empty key. | |
| private_key (const private_key &)=delete | |
| Copy constructor (deleted - private keys should not be copied) | |
| private_key (private_key &&other) noexcept | |
| Move constructor. | |
| auto | operator= (const private_key &) -> private_key &=delete |
| Copy assignment (deleted) | |
| auto | operator= (private_key &&other) noexcept -> private_key & |
| Move assignment. | |
| ~private_key () | |
| Destructor - securely erases key material. | |
| auto | algorithm_name () const -> std::string |
| Get the algorithm name. | |
| auto | key_size () const -> int |
| Get the key size in bits. | |
| auto | is_loaded () const noexcept -> bool |
| Check if key is loaded. | |
| auto | impl () const noexcept -> const private_key_impl * |
| Get internal implementation (for internal use only) | |
| auto | impl () noexcept -> private_key_impl * |
Static Public Member Functions | |
| static auto | load_from_pem (std::string_view path, std::string_view password="") -> kcenon::common::Result< private_key > |
| Load private key from PEM file. | |
| static auto | load_from_pem_string (std::string_view pem_data, std::string_view password="") -> kcenon::common::Result< private_key > |
| Load private key from PEM string. | |
Private Attributes | |
| std::unique_ptr< private_key_impl > | impl_ |
Definition at line 239 of file certificate.h.
| kcenon::pacs::security::private_key::private_key | ( | ) |
Default constructor - creates an empty key.
Definition at line 520 of file certificate.cpp.
|
delete |
Copy constructor (deleted - private keys should not be copied)
|
defaultnoexcept |
Move constructor.
|
default |
Destructor - securely erases key material.
|
nodiscard |
Get the algorithm name.
Definition at line 568 of file certificate.cpp.
References impl_.
|
nodiscardnoexcept |
Get internal implementation (for internal use only)
Definition at line 603 of file certificate.cpp.
References impl_.
|
nodiscardnoexcept |
Definition at line 607 of file certificate.cpp.
References impl_.
|
nodiscardnoexcept |
Check if key is loaded.
Definition at line 599 of file certificate.cpp.
References impl_.
|
nodiscard |
Get the key size in bits.
Definition at line 591 of file certificate.cpp.
References impl_.
|
staticnodiscard |
Load private key from PEM file.
| path | Path to PEM-encoded private key file |
| password | Optional password for encrypted keys (empty for unencrypted) |
Definition at line 528 of file certificate.cpp.
|
staticnodiscard |
Load private key from PEM string.
| pem_data | PEM-encoded private key data |
| password | Optional password for encrypted keys |
Definition at line 541 of file certificate.cpp.
References impl_.
|
delete |
Copy assignment (deleted)
|
defaultnoexcept |
Move assignment.
|
private |
Definition at line 330 of file certificate.h.
Referenced by algorithm_name(), impl(), impl(), is_loaded(), key_size(), and load_from_pem_string().