com.eruces.teadmin.CertObjectInfo
The CertObjectInfo class defines certificate objects.
Inheritance
- Inherits com.eruces.teadmin.UpdatableObject
Static Public Attributes
| Type | Name | Description |
|---|---|---|
| final int | CERTIFICATE_CA | Indicates that the certificate is a certificate authority certificate. |
| final int | CERTIFICATE_REGULAR | Indicates that the certificate is a regular certificate. |
| final int | SAVED_REQUEST | Pending CSR. |
| final int | SAVED_PKCS7 | PKCS -7. |
Public Member Functions
| Member | Description |
|---|---|
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
| Parameter | Description |
|---|---|
in | A 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
| Parameter | Description |
|---|---|
szCert | An 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
| Parameter | Description |
|---|---|
status | An 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.