Botan

EAC ASN.1 Objects

License
Botan is released under the Simplified BSD License (see LICENSE.md)

class  EACTimeImpl: botan.asn1.asn1_obj.ASN1Object;

This class represents CVC EAC Time objects. It only models year, month and day. Only limited sanity checks of the inputted date value are performed.


const string  toString();

Return a string representation of the time

Returns
date string

const string  readableString();

Get a this objects value as a readable formatted string.

Returns
date string

const bool  timeIsSet();

Find out whether this object's values have been set.

Returns
true if this object's internal values are set

const int  cmp(in EACTimeImpl other);

Compare this to another EACTime object.

Returns
-1 if this object's date is earlier than other, +1 in the opposite case, and 0 if both dates are equal.

void  setTo(in string time_str = "");

Set this' value by a human readable string

Parameters
string time_str a string in the format "yyyy mm dd", e.g. "2007 08 01"

void  addYears(uint years);

Add the specified number of years to this.

Parameters
uint years the number of years to add

void  addMonths(uint months);

Add the specified number of months to this.

Parameters
uint months the number of months to add

const uint  getYear();

Get the year value of this objects.

Returns
year value

const uint  getMonth();

Get the month value of this objects.

Returns
month value

const uint  getDay();

Get the day value of this objects.

Returns
day value

class  ASN1CedImpl: botan.cert.cvc.eac_asn_obj.EACTimeImpl;

This class represents CVC CEDs. Only limited sanity checks of the inputted date value are performed.


this(in string str = "");

Construct a CED from a string value.

Parameters
string str a string in the format "yyyy mm dd", e.g. "2007 08 01"

this(in SysTime time);

Construct a CED from a time point


this(in EACTime other);

Copy constructor (for general EACTime objects).

Parameters
EACTime other the object to copy from

class  ASN1CexImpl: botan.cert.cvc.eac_asn_obj.EACTimeImpl;

This class represents CVC CEXs. Only limited sanity checks of the inputted date value are performed.


this(in string str = "");

Construct a CEX from a string value.

Parameters
string str a string in the format "yyyy mm dd", e.g. "2007 08 01"

class  ASN1EACString: botan.asn1.asn1_obj.ASN1Object;

Base class for car/chr of cv certificates.


const string  value();

Get this objects string  value.

Returns
string  value

const string  iso8859();

Get this objects string value.

Returns
string value in  iso8859 encoding

class  ASN1CarImpl: botan.cert.cvc.eac_asn_obj.ASN1EACString;

This class represents CARs of CVCs. (String tagged with 2)


this(in string str = "");

Create a CAR with the specified content.

Parameters
string str the CAR value

class  ASN1ChrImpl: botan.cert.cvc.eac_asn_obj.ASN1EACString;

This class represents CHRs of CVCs (tag 32)


this(in string str = "");

Create a CHR with the specified content.

Parameters
string str the CHR value