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> 18 namespace Arp {
namespace System {
namespace Commons {
namespace Security
39 Asn1Time& operator=(
const ASN1_TIME* arg);
40 operator ASN1_TIME*()
const;
51 static DateTime Asn1TimeToDateTime(
const ASN1_TIME* tm);
60 static String Asn1TimeToIso8601String(
const ASN1_TIME* tm);
68 String GetTypeAsString(
void)
const;
74 bool Set(
const DateTime& time);
81 DateTime ToDateTime(
void)
const;
87 String ToString(
void)
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 Asn1Time(void)
Constructs an empty Asn1Time instance.
Definition: OpenSslBio.hpp:10
static String Asn1TimeToIso8601String(const ASN1_TIME *tm)
Converst an OpenSSL ASN1_TIME object to an ISO8601 formated String DateTime
The class contains date and time informations.
Definition: DateTime.hpp:44
Definition: Loggable.hxx:18
String ToIso8601String(void) const
Converts this object to an ISO8601 formated String DateTime
Definition: Asn1Time.hpp:148
Root namespace for the PLCnext API
Asn1Time & operator=(const Asn1Time &arg)
Assignment operator.
Definition: Asn1Time.hpp:127
DateTime ToDateTime(void) const
Converts this object to DataTime DateTime
Definition: Asn1Time.hpp:143
static DateTime Asn1TimeToDateTime(const ASN1_TIME *tm)
Converst an OpenSSL ASN1_TIME object to DataTime DateTime
System components used by the System, Device, Plc or Io domains.
Helper class to handle ASN1Time objects in x.509 Certificates
Definition: Asn1Time.hpp:22