#include <userver/crypto/private_key.hpp>
Loaded into memory private key 
Definition at line 20 of file private_key.hpp.
 
◆ NativeType
      
        
          | using crypto::PrivateKey::NativeType = EVP_PKEY | 
        
      
 
 
◆ GetNative()
  
  
      
        
          | NativeType * crypto::PrivateKey::GetNative  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
 
◆ GetPemString()
      
        
          | std::optional< std::string > crypto::PrivateKey::GetPemString  | 
          ( | 
          std::string_view |           password | ) | 
           const | 
        
      
 
Returns a PEM-encoded representation of stored private key encrypted by the provided password.
- Exceptions
 - 
  
  
 
 
 
◆ GetPemStringUnencrypted()
      
        
          | std::optional< std::string > crypto::PrivateKey::GetPemStringUnencrypted  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns a PEM-encoded representation of stored private key in an unencrypted form.
- Exceptions
 - 
  
  
 
 
 
◆ LoadFromString() [1/2]
  
  
      
        
          | static PrivateKey crypto::PrivateKey::LoadFromString  | 
          ( | 
          std::string_view |           key | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Accepts a string that contains a private key (not protected with password), checks the key and password, loads it into OpenSSL structures and returns as a PrivateKey variable.
- Exceptions
 - 
  
  
 
 
 
◆ LoadFromString() [2/2]
  
  
      
        
          | static PrivateKey crypto::PrivateKey::LoadFromString  | 
          ( | 
          std::string_view |           key,  | 
         
        
           | 
           | 
          std::string_view |           password ) | 
         
       
   | 
  
static   | 
  
 
Accepts a string that contains a private key and a password, checks the key and password, loads it into OpenSSL structures and returns as a PrivateKey variable.
- Exceptions
 - 
  
  
 
 
 
◆ operator bool()
  
  
      
        
          | crypto::PrivateKey::operator bool  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineexplicitnoexcept   | 
  
 
 
The documentation for this class was generated from the following file: