8 #include "Arp/System/Core/AppDomainSingleton.hxx"
9 #include "Arp/System/Commons/Logging.h"
10 #include "Arp/System/Commons/Security/Internal/OpenSslBio.hpp"
14 #include <openssl/x509.h>
16 using namespace Arp::System::Commons::Security::Internal;
18 namespace Arp {
namespace System {
namespace Commons {
namespace Security
39 Asn1Time& operator=(
const ASN1_TIME* arg);
40 operator ASN1_TIME*()
const;
93 String ToIso8601String(
void)
const;
98 static String DateTimeToTrimmedGeneralizedTime(
const DateTime time);
99 bool GeneralizedTimeFitsForUtcTime(
String timeStr);
104 ASN1_TIME* internalAsn1Time;
116 : internalAsn1Time(nullptr)
118 *
this = arg.internalAsn1Time;
122 : internalAsn1Time(nullptr)
129 *
this = arg.internalAsn1Time;
133 inline Asn1Time::operator ASN1_TIME*()
const
135 return this->internalAsn1Time;
138 inline Asn1Time::operator
DateTime()
const
140 return Asn1TimeToDateTime(this->internalAsn1Time);
The class contains date and time informations.
Definition: DateTime.hpp:45
Definition: Loggable.hxx:19
Helper class to handle ASN1Time objects in x.509 Certificates
Definition: Asn1Time.hpp:23
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:143
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:148
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:127
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API