8#include "Arp/System/Commons/Logging.h"
9#include "Arp/System/Commons/Security/Internal/OpenSslBio.hpp"
13#include <openssl/x509.h>
15using namespace Arp::System::Commons::Security::Internal;
17namespace Arp {
namespace System {
namespace Commons {
namespace Security
39 operator ASN1_TIME*()
const;
97 static String DateTimeToTrimmedGeneralizedTime(
const DateTime time);
98 bool GeneralizedTimeFitsForUtcTime(
String timeStr);
103 ASN1_TIME* internalAsn1Time;
115 : internalAsn1Time(nullptr)
117 *
this = arg.internalAsn1Time;
121 : internalAsn1Time(nullptr)
128 *
this = arg.internalAsn1Time;
132inline Asn1Time::operator ASN1_TIME*()
const
134 return this->internalAsn1Time;
137inline Asn1Time::operator
DateTime()
const
139 return Asn1TimeToDateTime(this->internalAsn1Time);
The class contains date and time informations.
Definition: DateTime.hpp:46
Definition: Loggable.hxx:20
Helper class to handle ASN1Time objects in x.509 Certificates
Definition: Asn1Time.hpp:22
static String Asn1TimeToIso8601String(const ASN1_TIME *pTime)
Converst an OpenSSL ASN1_TIME object to an ISO8601 formated String DateTime
DateTime ToDateTime(void) const
Converts this object to DataTime DateTime
Definition: Asn1Time.hpp:142
Asn1Time(void)
Constructs an empty Asn1Time instance.
String GetTypeAsString(void) const
Return the type of the Internal ASN1_TIME object as String
String ToIso8601String(void) const
Converts this object to an ISO8601 formated String DateTime
Definition: Asn1Time.hpp:147
String ToString(void) const
Converts this object to String DateTime
static DateTime Asn1TimeToDateTime(const ASN1_TIME *pTime)
Converst an OpenSSL ASN1_TIME object to DataTime DateTime
bool Set(const DateTime &time)
Sets this Ans1Time from a DateTime
~Asn1Time(void)
Destructs this instance and frees all resources.
Asn1Time & operator=(const Asn1Time &arg)
Assignment operator.
Definition: Asn1Time.hpp:126
Root namespace for the PLCnext API