CertificateValidity

This class defines the interval for which the certificate is valid.

@author Amit Kapoor @author Hemma Prafullchandra @see CertAttrSet

Constructors

this
this()

Default constructor for the class.

this
this(Date notBefore, Date notAfter)

The default constructor for this class for the specified interval.

this
this(DerInputStream stream)

Create the object, decoding the values from the passed DER stream.

Members

Functions

encode
void encode(OutputStream stream)

Encode the CertificateValidity period in DER form to the stream.

get
Date get(string name)

Get the attribute value.

getElements
Enumeration!string getElements()

Return an enumeration of names of attributes existing within this attribute.

getName
string getName()

Return the name of this attribute.

remove
void remove(string name)

Delete the attribute value.

set
void set(string name, Date obj)

Set the attribute value.

toString
string toString()

Return the validity period as user readable string.

valid
void valid()

Verify that the current time is within the validity period.

valid
void valid(Date now)

Verify that the passed time is within the validity period. @param now the Date against which to compare the validity period.

Variables

IDENT
enum string IDENT;

Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.

NAME
enum string NAME;

Sub attributes name for this CertAttrSet.

NOT_AFTER
enum string NOT_AFTER;
Undocumented in source.
NOT_BEFORE
enum string NOT_BEFORE;
Undocumented in source.

Meta