Botan
1.10.9
|
#include <eac_asn_obj.h>
Public Member Functions | |
void | add_months (u32bit months) |
void | add_years (u32bit years) |
std::string | as_string () const |
ASN1_Ced (std::string const &str="") | |
ASN1_Ced (u64bit time) | |
ASN1_Ced (EAC_Time const &other) | |
s32bit | cmp (const EAC_Time &other) const |
void | decode_from (class BER_Decoder &) |
void | encode_into (class DER_Encoder &) const |
u32bit | get_day () const |
u32bit | get_month () const |
u32bit | get_year () const |
std::string | readable_string () const |
void | set_to (const std::string &str) |
bool | time_is_set () const |
This class represents CVC CEDs. Only limited sanity checks of the inputted date value are performed.
Definition at line 108 of file eac_asn_obj.h.
Botan::ASN1_Ced::ASN1_Ced | ( | std::string const & | str = "" | ) |
Construct a CED from a string value.
str | a string in the format "yyyy mm dd", e.g. "2007 08 01" |
Definition at line 313 of file asn1_eac_tm.cpp.
Botan::ASN1_Ced::ASN1_Ced | ( | u64bit | time | ) |
Construct a CED from a timer value.
time | the number of seconds elapsed midnight, 1st January 1970 GMT (or 7pm, 31st December 1969 EST) up to the desired date |
Definition at line 317 of file asn1_eac_tm.cpp.
Botan::ASN1_Ced::ASN1_Ced | ( | EAC_Time const & | other | ) |
Copy constructor (for general EAC_Time objects).
other | the object to copy from |
Definition at line 321 of file asn1_eac_tm.cpp.
|
inherited |
Add the specified number of months to this.
months | the number of months to add |
Definition at line 190 of file asn1_eac_tm.cpp.
Referenced by Botan::DE_EAC::create_cvca(), and Botan::DE_EAC::sign_request().
|
inherited |
Add the specified number of years to this.
years | the number of years to add |
Definition at line 186 of file asn1_eac_tm.cpp.
|
inherited |
Get a this objects value as a string.
Definition at line 130 of file asn1_eac_tm.cpp.
References Botan::EAC_Time::time_is_set(), and Botan::to_string().
Referenced by Botan::DE_EAC::link_cvca().
Compare this to another EAC_Time object.
Definition at line 205 of file asn1_eac_tm.cpp.
References Botan::EAC_Time::time_is_set().
Referenced by Botan::operator!=(), Botan::operator<(), Botan::operator<=(), Botan::operator==(), Botan::operator>(), and Botan::operator>=().
|
virtualinherited |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 258 of file asn1_eac_tm.cpp.
References Botan::BER_Decoder::get_next_object(), Botan::MemoryRegion< T >::size(), Botan::BER_Object::type_tag, and Botan::BER_Object::value.
|
virtualinherited |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 121 of file asn1_eac_tm.cpp.
References Botan::DER_Encoder::add_object(), and Botan::APPLICATION.
|
inherited |
|
inherited |
Get the month value of this objects.
Definition at line 291 of file asn1_eac_tm.cpp.
|
inherited |
Get the year value of this objects.
Definition at line 286 of file asn1_eac_tm.cpp.
|
inherited |
Get a this objects value as a readable formatted string.
Definition at line 154 of file asn1_eac_tm.cpp.
References Botan::EAC_Time::time_is_set(), and Botan::to_string().
|
inherited |
Set this' value by a string value.
str | a string in the format "yyyy mm dd", e.g. "2007 08 01" |
Definition at line 81 of file asn1_eac_tm.cpp.
References Botan::Charset::is_digit(), and Botan::to_u32bit().
Referenced by Botan::EAC_Time::EAC_Time().
|
inherited |
Find out whether this object's values have been set.
Definition at line 146 of file asn1_eac_tm.cpp.
Referenced by Botan::EAC_Time::as_string(), Botan::EAC_Time::cmp(), and Botan::EAC_Time::readable_string().