userver: crypto::Certificate Class Reference
Loading...
Searching...
No Matches
crypto::Certificate Class Reference

#include <userver/crypto/certificate.hpp>

Public Types

using NativeType = X509
 

Public Member Functions

NativeType * GetNative () const noexcept
 
 operator bool () const noexcept
 

Static Public Member Functions

static Certificate LoadFromString (std::string_view certificate)
 

Detailed Description

Loaded into memory X509 certificate

Definition at line 18 of file certificate.hpp.

Member Typedef Documentation

◆ NativeType

using crypto::Certificate::NativeType = X509

Definition at line 20 of file certificate.hpp.

Member Function Documentation

◆ GetNative()

NativeType * crypto::Certificate::GetNative ( ) const
inlinenoexcept

Definition at line 24 of file certificate.hpp.

◆ 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
crypto::KeyParseErrorif failed to load the certificate.

◆ operator bool()

crypto::Certificate::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 25 of file certificate.hpp.


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