Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
PKI/PrivateKey.cpp
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#include "Stroika/Foundation/StroikaPreComp.h"
5
6#if qStroika_HasComponent_OpenSSL
7#include "Stroika/Foundation/Cryptography/Providers/OpenSSL/PrivateKey.h"
8#else
9#include "Stroika/Foundation/Execution/RequiredComponentMissingException.h"
10#endif
12
13#include "PrivateKey.h"
14
15using namespace Stroika::Foundation;
17using namespace Stroika::Foundation::Cryptography;
18#if !qStroika_HasComponent_OpenSSL
19using namespace Stroika::Foundation::Execution;
20#endif
21
22/*
23 ********************************************************************************
24 ******************* Cryptography::PKI::PrivateKey::Ptr *************************
25 ********************************************************************************
26 */
27auto Cryptography::PKI::PrivateKey::Ptr::ToString () const -> String
28{
29 if (*this == nullptr) {
30 return "nullptr"sv;
31 }
33 sb << "{"sv;
34 sb << "type: "sv << this->GetType ();
35 sb << ", bits: "sv << this->GetBits ();
36 sb << ", summary: "sv << this->GetPrintSummary ();
37 sb << "}"sv;
38 return sb;
39}
Similar to String, but intended to more efficiently construct a String. Mutable type (String is large...
String is like std::u32string, except it is much easier to use, often much more space efficient,...
Definition String.h:201