Foxit PDF SDK
|
Public Member Functions | |
CertVerifyResult () | |
Constructor. | |
CertVerifyResult (byte[] cert, boolean is_ca, boolean is_trusted, Response response, TimeRange response_effect_time_range, DateTime revoke_time, int cert_status, int reason, DateTime cert_check_time, boolean exist_signature_vri_creation_time, DateTime signature_vri_creation_time, boolean exist_response_signature_vri_creation_time, DateTime response_signature_vri_creation_time, int response_info_location) | |
Constructor, with parameters. More... | |
CertVerifyResult (CertVerifyResult other) | |
Constructor, with another certificate verify result object. More... | |
synchronized void | delete () |
Clean up related resources immediately. More... | |
byte[] | getCert () |
Get a certificate contnet. More... | |
DateTime | getCert_check_time () |
Get the actual time when this certificate is checked validity. More... | |
int | getCert_status () |
Get certificate status. More... | |
boolean | getExist_response_signature_vri_creation_time () |
Get indicate if creation time of response signature's VRI exists. More... | |
boolean | getExist_signature_vri_creation_time () |
Get indicate if creation time of siganture's VRI exists. More... | |
boolean | getIs_ca () |
Get indicate if the certificate is a CA certificate. More... | |
boolean | getIs_trusted () |
Get indicate if the certificate is truscted by user. More... | |
int | getReason () |
Get revocation reason of the certificate. More... | |
Response | getResponse () |
Get a response for the certificate. More... | |
TimeRange | getResponse_effect_time_range () |
Get the time range when the response takes effect. More... | |
int | getResponse_info_location () |
Get response information (as revocation information) location where certificate response can be found. More... | |
DateTime | getResponse_signature_vri_creation_time () |
Get creation time of response signature's VRI. More... | |
DateTime | getRevoke_time () |
Get revoked time got from the response. More... | |
DateTime | getSignature_vri_creation_time () |
Get creation time of a signature's VRI. More... | |
void | set (byte[] cert, boolean is_ca, boolean is_trusted, Response response, TimeRange response_effect_time_range, DateTime revoke_time, int cert_status, int reason, DateTime cert_check_time, boolean exist_signature_vri_creation_time, DateTime signature_vri_creation_time, boolean exist_response_signature_vri_creation_time, DateTime response_signature_vri_creation_time, int response_info_location) |
Set value. More... | |
void | setCert (byte[] value) |
Set a certificate contnet. More... | |
void | setCert_check_time (DateTime value) |
Set the actual time when this certificate is checked validity. More... | |
void | setCert_status (int value) |
Set certificate status. More... | |
void | setExist_response_signature_vri_creation_time (boolean value) |
Set indicate if creation time of response signature's VRI exists. More... | |
void | setExist_signature_vri_creation_time (boolean value) |
Set indicate if creation time of siganture's VRI exists. More... | |
void | setIs_ca (boolean value) |
Set indicate if the certificate is a CA certificate. More... | |
void | setIs_trusted (boolean value) |
Set indicate if the certificate is truscted by user. More... | |
void | setReason (int value) |
Set revocation reason of the certificate. More... | |
void | setResponse (Response value) |
Set a response for the certificate. More... | |
void | setResponse_effect_time_range (TimeRange value) |
Set the time range when the response takes effect. More... | |
void | setResponse_info_location (int value) |
Set response information (as revocation information) location where certificate response can be found. More... | |
void | setResponse_signature_vri_creation_time (DateTime value) |
Set creation time of response signature's VRI. More... | |
void | setRevoke_time (DateTime value) |
Set revoked time got from the response. More... | |
void | setSignature_vri_creation_time (DateTime value) |
Set creation time of a signature's VRI. More... | |
Static Public Attributes | |
static final int | e_CertStatusExpired = 2 |
This means certificate is expired. | |
static final int | e_CertStatusRevoked = 1 |
This means certificate is revoked. | |
static final int | e_CertStatusUnknown = 3 |
This means certificate status is unknown. | |
static final int | e_CertStatusValid = 0 |
This means certificate is valid. | |
static final int | e_LocationDSS = 1 |
Response information is found in DSS dictionary. | |
static final int | e_LocationNotSet = 0 |
Location is not set. | |
static final int | e_LocationOnline = 3 |
Response information is got by online request. | |
static final int | e_LocationSignature = 2 |
Response information is found in signature content. | |
static final int | e_ReasonAACompromise = 9 |
Revocatoin reason: AA compromise. | |
static final int | e_ReasonAffiliationChanged = 3 |
Revocatoin reason: affiliation changed. | |
static final int | e_ReasonCACompromise = 2 |
Revocatoin reason: CA compromise. | |
static final int | e_ReasonCertificateHold = 6 |
Revocatoin reason: certificate hold. | |
static final int | e_ReasonCessationOfOperation = 5 |
Revocatoin reason: cessation of operation. | |
static final int | e_ReasonKeyCompromise = 1 |
Revocatoin reason: key compromise. | |
static final int | e_ReasonNoStatus = -1 |
Revocatoin reason: ceritifcate has no status. | |
static final int | e_ReasonPrivilegeWithDrawn = 8 |
Revocatoin reason: privilege with drawn. | |
static final int | e_ReasonRemoveFromCRL = 7 |
Revocatoin reason: remove from CRL. | |
static final int | e_ReasonSuperseded = 4 |
Revocatoin reason: superseded. | |
static final int | e_ReasonUnspecified = 0 |
Revocatoin reason: unspecified reason. | |
This class represents the verify result for a certificate.
com.foxit.sdk.pdf.CertVerifyResult.CertVerifyResult | ( | byte[] | cert, |
boolean | is_ca, | ||
boolean | is_trusted, | ||
Response | response, | ||
TimeRange | response_effect_time_range, | ||
DateTime | revoke_time, | ||
int | cert_status, | ||
int | reason, | ||
DateTime | cert_check_time, | ||
boolean | exist_signature_vri_creation_time, | ||
DateTime | signature_vri_creation_time, | ||
boolean | exist_response_signature_vri_creation_time, | ||
DateTime | response_signature_vri_creation_time, | ||
int | response_info_location | ||
) |
Constructor, with parameters.
[in] | cert | A certificate contnet. |
[in] | is_ca | Indicate if the certificate is a CA certificate. |
[in] | is_trusted | Indicate if the certificate is trusted by user. |
[in] | response | A response for the certificate. |
[in] | response_effect_time_range | The time range when the response takes effect. |
[in] | revoke_time | Revoked time got from the response. |
[in] | cert_status | Certificate status. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_CertStatusValid and this should be one of these values. |
[in] | reason | Revocation reason of the certificate. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_ReasonNoStatus and this should be one of these values. |
[in] | cert_check_time | The actual time when this certificate is checked validity. utc_hour_offset and utc_minite_offset of this time object are ignored. |
[in] | exist_signature_vri_creation_time | Indicate if creation time of siganture's VRI exists. |
[in] | signature_vri_creation_time | Creation time of a signature's VRI. utc_hour_offset and utc_minite_offset of this time object are ignored. |
[in] | exist_response_signature_vri_creation_time | Indicate if creation time of response signature's VRI exists. |
[in] | response_signature_vri_creation_time | Creation time of response signature's VRI. utc_hour_offset and utc_minite_offset of this time object are ignored. |
[in] | response_info_location | Response information (as revocation information) location where certificate response can be found. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_LocationNotSet and this should be one of these values. |
com.foxit.sdk.pdf.CertVerifyResult.CertVerifyResult | ( | CertVerifyResult | other | ) |
Constructor, with another certificate verify result object.
[in] | other | Another response object. |
synchronized void com.foxit.sdk.pdf.CertVerifyResult.delete | ( | ) |
Clean up related resources immediately.
com.foxit.sdk.pdf.CertVerifyResult.getCert | ( | ) |
Get a certificate contnet.
com.foxit.sdk.pdf.CertVerifyResult.getCert_check_time | ( | ) |
Get the actual time when this certificate is checked validity.
com.foxit.sdk.pdf.CertVerifyResult.getCert_status | ( | ) |
Get certificate status.
com.foxit.sdk.pdf.CertVerifyResult.getExist_response_signature_vri_creation_time | ( | ) |
Get indicate if creation time of response signature's VRI exists.
com.foxit.sdk.pdf.CertVerifyResult.getExist_signature_vri_creation_time | ( | ) |
Get indicate if creation time of siganture's VRI exists.
com.foxit.sdk.pdf.CertVerifyResult.getIs_ca | ( | ) |
Get indicate if the certificate is a CA certificate.
com.foxit.sdk.pdf.CertVerifyResult.getIs_trusted | ( | ) |
Get indicate if the certificate is truscted by user.
com.foxit.sdk.pdf.CertVerifyResult.getReason | ( | ) |
Get revocation reason of the certificate.
com.foxit.sdk.pdf.CertVerifyResult.getResponse | ( | ) |
Get a response for the certificate.
com.foxit.sdk.pdf.CertVerifyResult.getResponse_effect_time_range | ( | ) |
Get the time range when the response takes effect.
com.foxit.sdk.pdf.CertVerifyResult.getResponse_info_location | ( | ) |
Get response information (as revocation information) location where certificate response can be found.
com.foxit.sdk.pdf.CertVerifyResult.getResponse_signature_vri_creation_time | ( | ) |
Get creation time of response signature's VRI.
com.foxit.sdk.pdf.CertVerifyResult.getRevoke_time | ( | ) |
Get revoked time got from the response.
com.foxit.sdk.pdf.CertVerifyResult.getSignature_vri_creation_time | ( | ) |
Get creation time of a signature's VRI.
void com.foxit.sdk.pdf.CertVerifyResult.set | ( | byte[] | cert, |
boolean | is_ca, | ||
boolean | is_trusted, | ||
Response | response, | ||
TimeRange | response_effect_time_range, | ||
DateTime | revoke_time, | ||
int | cert_status, | ||
int | reason, | ||
DateTime | cert_check_time, | ||
boolean | exist_signature_vri_creation_time, | ||
DateTime | signature_vri_creation_time, | ||
boolean | exist_response_signature_vri_creation_time, | ||
DateTime | response_signature_vri_creation_time, | ||
int | response_info_location | ||
) |
Set value.
[in] | cert | A certificate contnet. |
[in] | is_ca | Indicate if the certificate is a CA certificate. |
[in] | is_trusted | Indicate if the certificate is trusted by user. |
[in] | response | A response for the certificate. |
[in] | response_effect_time_range | The time range when the response takes effect. |
[in] | revoke_time | Revoked time got from the response. |
[in] | cert_status | Certificate status. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_CertStatusValid and this should be one of these values. |
[in] | reason | Revocation reason of the certificate. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_ReasonNoStatus and this should be one of these values. |
[in] | cert_check_time | The actual time when this certificate is checked validity. utc_hour_offset and utc_minite_offset of this time object are ignored. |
[in] | exist_signature_vri_creation_time | Indicate if creation time of siganture's VRI exists. |
[in] | signature_vri_creation_time | Creation time of a signature's VRI. utc_hour_offset and utc_minite_offset of this time object are ignored. |
[in] | exist_response_signature_vri_creation_time | Indicate if creation time of response signature's VRI exists. |
[in] | response_signature_vri_creation_time | Creation time of response signature's VRI. utc_hour_offset and utc_minite_offset of this time object are ignored. |
[in] | response_info_location | Response information (as revocation information) location where certificate response can be found. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_LocationNotSet and this should be one of these values. |
com.foxit.sdk.pdf.CertVerifyResult.setCert | ( | byte[] | value | ) |
Set a certificate contnet.
[in] | value | A certificate contnet. |
com.foxit.sdk.pdf.CertVerifyResult.setCert_check_time | ( | DateTime | value | ) |
Set the actual time when this certificate is checked validity.
[in] | value | The actual time when this certificate is checked validity. utc_hour_offset and utc_minite_offset of this time object are ignored. |
com.foxit.sdk.pdf.CertVerifyResult.setCert_status | ( | int | value | ) |
Set certificate status.
[in] | value | Certificate status. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_CertStatusValid and this should be one of these values. |
com.foxit.sdk.pdf.CertVerifyResult.setExist_response_signature_vri_creation_time | ( | boolean | value | ) |
Set indicate if creation time of response signature's VRI exists.
[in] | value | Indicate if creation time of response signature's VRI exists. |
com.foxit.sdk.pdf.CertVerifyResult.setExist_signature_vri_creation_time | ( | boolean | value | ) |
Set indicate if creation time of siganture's VRI exists.
[in] | value | Indicate if creation time of siganture's VRI exists. |
com.foxit.sdk.pdf.CertVerifyResult.setIs_ca | ( | boolean | value | ) |
Set indicate if the certificate is a CA certificate.
[in] | value | Indicate if the certificate is a CA certificate. |
com.foxit.sdk.pdf.CertVerifyResult.setIs_trusted | ( | boolean | value | ) |
Set indicate if the certificate is truscted by user.
[in] | value | Indicate if the certificate is truscted by user. |
com.foxit.sdk.pdf.CertVerifyResult.setReason | ( | int | value | ) |
Set revocation reason of the certificate.
[in] | value | Revocation reason of the certificate. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_ReasonNoStatus and this should be one of these values. |
com.foxit.sdk.pdf.CertVerifyResult.setResponse | ( | Response | value | ) |
Set a response for the certificate.
[in] | value | A response for the certificate. |
com.foxit.sdk.pdf.CertVerifyResult.setResponse_effect_time_range | ( | TimeRange | value | ) |
Set the time range when the response takes effect.
[in] | value | The time range when the response takes effect. |
com.foxit.sdk.pdf.CertVerifyResult.setResponse_info_location | ( | int | value | ) |
Set response information (as revocation information) location where certificate response can be found.
[in] | value | Response information (as revocation information) location where certificate response can be found. Please refer to values starting from com.foxit.sdk.pdf.CertVerifyResult.e_LocationNotSet and this should be one of these values. |
com.foxit.sdk.pdf.CertVerifyResult.setResponse_signature_vri_creation_time | ( | DateTime | value | ) |
Set creation time of response signature's VRI.
[in] | value | Creation time of response signature's VRI. utc_hour_offset and utc_minite_offset of this time object are ignored. |
com.foxit.sdk.pdf.CertVerifyResult.setRevoke_time | ( | DateTime | value | ) |
Set revoked time got from the response.
[in] | value | Revoked time got from the response. |
com.foxit.sdk.pdf.CertVerifyResult.setSignature_vri_creation_time | ( | DateTime | value | ) |
Set creation time of a signature's VRI.
[in] | value | Creation time of a signature's VRI. utc_hour_offset and utc_minite_offset of this time object are ignored. |