Skip to main content

com.eruces.teadmin.CertObjectInfo

The CertObjectInfo class defines certificate objects.

Inheritance

Static Public Attributes

TypeNameDescription
final intCERTIFICATE_CAIndicates that the certificate is a certificate authority certificate.
final intCERTIFICATE_REGULARIndicates that the certificate is a regular certificate.
final intSAVED_REQUESTPending CSR.
final intSAVED_PKCS7PKCS -7.

Public Member Functions

MemberDescription
CertObjectInfo()The CertObjectInfo constructor is the default class constructor.
CertObjectInfo(InputStream in)The CertObjectInfo constructor specifies a stream of certificate data.
String getSubjectName()The getSubjectName method gets a certificate's subject name.
Date getEffectiveDate()The getEffectiveDate method gets the date when a certificate goes into effect.
Date getExpirationDate()The getExpirationDate method gets the date when a certificate expires.
byte[] getSerialNumber()The getSerialNumber method gets a certificate's serial number.
String getIssuerName()The getIssuerName method gets the name of a certificate's issuer.
byte[] getCertHash()The getCertHash method gets the hash value of a certificate.
void setCertificate(byte[] szCert)The setCertificate method sets certificate information.
byte[] getCertificate()The getCertificate method gets certificate information.
void setStatus(int status)The setStatus method sets a certificate's status; the status is either CERTIFICATE_CA(0) or CERTIFICATE_REGULAR(1).
int getStatus()The getStatus method gets a certificate's status.
long getCertificateID()The getCertificateID method gets a certificate ID.
String toString()The toString method converts CertObjectInfo object to a string.

Member Function Documentation

CertObjectInfo()

The CertObjectInfo constructor is the default class constructor.

CertObjectInfo(InputStream in)

The CertObjectInfo constructor specifies a stream of certificate data.

Parameters

ParameterDescription
inA stream representing certificate information.

String getSubjectName()

The getSubjectName method gets a certificate's subject name.

Returns: A string representing the certificate's subject name.

Date getEffectiveDate()

The getEffectiveDate method gets the date when a certificate goes into effect.

Returns: A Date object representing the date when the certificate goes into effect.

Date getExpirationDate()

The getExpirationDate method gets the date when a certificate expires.

Returns: A Date object representing the date when the certificate expires.

byte[] getSerialNumber()

The getSerialNumber method gets a certificate's serial number.

Returns: A byte array representing the certificate's serial number.

String getIssuerName()

The getIssuerName method gets the name of a certificate's issuer.

Returns: A string representing the name of the certificate issuer.

byte[] getCertHash()

The getCertHash method gets the hash value of a certificate.

Returns: Returns a byte array representing the certificate's hash value.

void setCertificate(byte[] szCert)

The setCertificate method sets certificate information.

Parameters

ParameterDescription
szCertAn array of bytes representing certificate information.

byte[] getCertificate()

The getCertificate method gets certificate information.

Returns: A byte array representing certificate information.

void setStatus(int status)

The setStatus method sets a certificate's status; the status is either CERTIFICATE_CA(0) or CERTIFICATE_REGULAR(1).

Parameters

ParameterDescription
statusAn integer representing the certificate's status.

See also: CERTIFICATE_CA, CERTIFICATE_REGULAR

int getStatus()

The getStatus method gets a certificate's status.

Returns: An integer representing the certificate's status; either CERTIFICATE_CA(0) or CERTIFICATE_REGULAR(1).

See also: CERTIFICATE_CA, CERTIFICATE_REGULAR

long getCertificateID()

The getCertificateID method gets a certificate ID.

Returns: An integer representing a certificate ID.

String toString()

The toString method converts CertObjectInfo object to a string.

Returns: A string representing CertObjectInfo object.

Remark: Overrides the toString method in the com.eruces.teadmin.UpdatableObject class.