#include <userver/crypto/certificate.hpp>
Loaded into memory X509 certificate
Definition at line 21 of file certificate.hpp.
|
NativeType * | GetNative () const noexcept |
|
| operator bool () const noexcept |
|
std::optional< std::string > | GetPemString () const |
|
std::string | GetSubject () const |
| Returns Subject.
|
|
◆ NativeType
using crypto::Certificate::NativeType = X509 |
◆ GetNative()
NativeType * crypto::Certificate::GetNative |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetPemString()
std::optional< std::string > crypto::Certificate::GetPemString |
( |
| ) |
const |
Returns a PEM-encoded representation of stored certificate.
- Exceptions
-
◆ LoadFromString()
static Certificate crypto::Certificate::LoadFromString |
( |
std::string_view | certificate | ) |
|
|
static |
Accepts a string that contains a certificate, checks that it's correct, loads it into OpenSSL structures and returns as a Certificate variable.
- Exceptions
-
◆ LoadFromStringSkippingAttributes()
static Certificate crypto::Certificate::LoadFromStringSkippingAttributes |
( |
std::string_view | certificate | ) |
|
|
static |
Loads the certificate and skips the meta information in it
- Exceptions
-
◆ operator bool()
crypto::Certificate::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
The documentation for this class was generated from the following file: