CertificateVersion

This class defines the version of the X509 Certificate.

@author Amit Kapoor @author Hemma Prafullchandra @see CertAttrSet

Constructors

this
this()

The default constructor for this class, sets the version to 0 (i.e. X.509 version 1).

this
this(int ver)

The constructor for this class for the required version.

this
this(DerInputStream stream)

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

this
this(InputStream stream)

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

this
this(DerValue val)

Create the object, decoding the values from the passed DerValue.

Members

Functions

compare
int compare(int vers)

Compare versions.

encode
void encode(OutputStream stream)

Encode the CertificateVersion period in DER form to the stream.

get
int 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, int obj)

Set the attribute value.

toString
string toString()

Return the version number of the certificate.

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.

V1
enum int V1;

X509Certificate Version 1

V2
enum int V2;

X509Certificate Version 2

V3
enum int V3;

X509Certificate Version 3

VERSION
enum string VERSION;
Undocumented in source.
_version
int _version;
Undocumented in source.

Meta