Foxit PDF SDK
fs_ltvverifier.h
Go to the documentation of this file.
1 
15 #ifndef FS_LTVVERIFIER_H_
16 #define FS_LTVVERIFIER_H_
17 
18 #include "common/fs_common.h"
19 #include "pdf/fs_pdfdoc.h"
20 
26 namespace foxit {
30 namespace pdf {
32 class Response FS_FINAL : public Object{
33  public:
39  typedef enum _ResponseType {
43  e_TypeCRL = 1,
46  } ResponseType;
47 
48 
57  this->type = type;
58  this->response_data = response_data;
59  }
60 
63 
65  ~Response() {}
66 
72  Response(const Response& other) {
73  type = other.type;
75  }
76 
84  Response& operator = (const Response& other) {
85  type = other.type;
87  return *this;
88  }
89 
97  bool operator == (const Response& other) const {
98  return (type == other.type && response_data == other.response_data);
99  }
100 
108  bool operator != (const Response& other) const {
109  return!(*this == other);
110  }
111 
122  this->type = type;
123  this->response_data = response_data;
124  }
125 
131 
134 };
135 
137 class TimeRange FS_FINAL : public Object{
138  public:
146  this->start_time = start_time;
147  this->end_time = end_time;
148  }
149 
152 
155 
161  TimeRange(const TimeRange& other) {
162  start_time = other.start_time;
163  end_time = other.end_time;
164  }
165 
173  TimeRange& operator = (const TimeRange& other) {
174  start_time = other.start_time;
175  end_time = other.end_time;
176  return *this;
177  }
178 
186  bool operator == (const TimeRange& other) const {
187  return (start_time == other.start_time && end_time == other.end_time);
188  }
189 
197  bool operator != (const TimeRange& other) const {
198  return!(*this == other);
199  }
200 
209  void Set(const DateTime& start_time, const DateTime& end_time) {
210  this->start_time = start_time;
211  this->end_time = end_time;
212  }
213 
218 };
219 
221 class CertVerifyResult FS_FINAL : public Object{
222  public:
228  typedef enum _CertStatus {
237  } CertStatus;
238 
244  typedef enum _RevocationReason {
268 
274  typedef enum _ResponseInfoLocation {
284 
285 
316  const DateTime& cert_check_time,
320  this->cert = cert;
321  this->is_ca = is_ca;
322  this->is_trusted = is_trusted;
323  this->response = response;
324  this->response_effect_time_range = response_effect_time_range;
325  this->revoke_time = revoke_time;
326  this->cert_status = cert_status;
327  this->reason = reason;
328  this->cert_check_time = cert_check_time;
329  this->exist_signature_vri_creation_time = exist_signature_vri_creation_time;
330  this->signature_vri_creation_time = signature_vri_creation_time;
331  this->exist_response_signature_vri_creation_time = exist_response_signature_vri_creation_time;
332  this->response_signature_vri_creation_time = response_signature_vri_creation_time;
333  this->response_info_location = response_info_location;
334  }
335 
338  : is_ca(false)
339  , is_trusted(false)
345 
348 
355  cert = other.cert;
356  is_ca = other.is_ca;
357  is_trusted = other.is_trusted;
358  response = other.response;
360  revoke_time = other.revoke_time;
361  cert_status = other.cert_status;
362  reason = other.reason;
369  }
370 
379  cert = other.cert;
380  is_ca = other.is_ca;
381  is_trusted = other.is_trusted;
382  response = other.response;
384  revoke_time = other.revoke_time;
385  cert_status = other.cert_status;
386  reason = other.reason;
393  return *this;
394  }
395 
403  bool operator == (const CertVerifyResult& other) const {
404  return (cert == other.cert && is_ca == other.is_ca && is_trusted == other.is_trusted &&
405  response == other.response &&
407  revoke_time == other.revoke_time &&
408  cert_status == other.cert_status && reason == other.reason &&
409  cert_check_time == other.cert_check_time &&
415  }
416 
424  bool operator != (const CertVerifyResult& other) const {
425  return!(*this == other);
426  }
427 
457  void Set(const String& cert, bool is_ca, bool is_trusted, const Response& response,
460  const DateTime& cert_check_time,
464  this->cert = cert;
465  this->is_ca = is_ca;
466  this->is_trusted = is_trusted;
467  this->response = response;
468  this->response_effect_time_range = response_effect_time_range;
469  this->revoke_time = revoke_time;
470  this->cert_status = cert_status;
471  this->reason = reason;
472  this->cert_check_time = cert_check_time;
473  this->exist_signature_vri_creation_time = exist_signature_vri_creation_time;
474  this->signature_vri_creation_time = signature_vri_creation_time;
475  this->exist_response_signature_vri_creation_time = exist_response_signature_vri_creation_time;
476  this->response_signature_vri_creation_time = response_signature_vri_creation_time;
477  this->response_info_location = response_info_location;
478  }
479 
482 
484  bool is_ca;
529 };
530 
533 
535 class CertIssuerPair FS_FINAL : public Object{
536  public:
544  this->cert = cert;
545  this->issuer = issuer;
546  }
547 
550 
553 
560  cert = other.cert;
561  issuer = other.issuer;
562  }
563 
572  cert = other.cert;
573  issuer = other.issuer;
574  return *this;
575  }
576 
584  bool operator == (const CertIssuerPair& other) const {
585  return (cert == other.cert && issuer == other.issuer);
586  }
587 
595  bool operator != (const CertIssuerPair& other) const {
596  return!(*this == other);
597  }
598 
607  void Set(const String& cert, const String& issuer) {
608  this->cert = cert;
609  this->issuer = issuer;
610  }
611 
616 };
617 
619 class RevocationArrayInfo FS_FINAL : public Object{
620  public:
628  this->ocsp_array = ocsp_array;
629  this->crl_array = crl_array;
630  }
631 
634 
637 
644  ocsp_array = other.ocsp_array;
645  crl_array = other.crl_array;
646  }
647 
656  ocsp_array = other.ocsp_array;
657  crl_array = other.crl_array;
658  return *this;
659  }
660 
668  bool operator == (const RevocationArrayInfo& other) const {
669  size_t ocsp_count = ocsp_array.GetSize();
670  size_t crl_count = crl_array.GetSize();
671  if (ocsp_count != other.ocsp_array.GetSize() || crl_count != crl_array.GetSize())
672  return false;
673  for (size_t i = 0; i < ocsp_count; i++) {
674  if (ocsp_array.GetAt(i) != other.ocsp_array.GetAt(i))
675  return false;
676  }
677  for (size_t i = 0; i < ocsp_count; i++) {
678  if (crl_array.GetAt(i) != other.crl_array.GetAt(i))
679  return false;
680  }
681  return true;
682  }
683 
691  bool operator != (const RevocationArrayInfo& other) const {
692  return!(*this == other);
693  }
694 
704  this->ocsp_array = ocsp_array;
705  this->crl_array = crl_array;
706  }
707 
712 };
713 
721  public:
727  virtual void Release() = 0;
728 
739  virtual StringArray GetCertChainFromSignature(const String& signature_content) = 0;
740 
751  virtual Response GetResponseOnLineForSingleCert(const CertIssuerPair& cert_issuer_pair) = 0;
752 
765  virtual CertVerifyResult VerifyOCSP(const CertIssuerPair& cert_issuer_pair, const String& ocsp_data) = 0;
766 
779  virtual CertVerifyResult VerifyCRL(const CertIssuerPair& cert_issuer_pair, const String& crl_data) = 0;
780 
788  virtual bool IsCA(const String& cert) = 0;
789 
800  virtual DateTime GetDTSTime(const String& signature_content) = 0;
801 
812  virtual String GetTSTSignature(const String& signature_content) = 0;
813 
825  virtual DateTime GetTSTTime(const String& signature_content) = 0;
826 
838  virtual CertIssuerPair GetOCSPCertAndIssuer(const String& ocsp_data, const StringArray& trust_cert_chain) = 0;
839 
851  virtual DateTime GetOCSPProducedAtTime(const String& ocsp_data) = 0;
852 
860  virtual bool IsOCSPNeedCheck(const String& ocsp_data) = 0;
861 
872  virtual TimeRange GetCertValidTimeRange(const String& cert) = 0;
873 
884  virtual String GetOCSPSignature(const String& ocsp_data) = 0;
885 
896  virtual String GetCRLSignature(const String& crl_data) = 0;
897 
908  virtual RevocationArrayInfo GetRevocationInfoFromSignatureData(const String& signature_content) = 0;
909 
918  virtual bool IsIssuerMatchCert(const CertIssuerPair& cert_issuer_pair) = 0;
919 
920  protected:
921  ~RevocationCallback() {}
922 };
923 
933  public:
941  virtual bool IsCertTrusted(const String& cert) = 0;
942 
950  virtual bool IsCertTrustedRoot(const String& cert) = 0;
951 
952 };
953 
964  public:
974  virtual StringArray GetCertificates() = 0;
975 };
976 
980 
981 
989 class LTVVerifier FS_FINAL : public Base{
990  public:
996  typedef enum _TimeType {
998  e_SignatureCreationTime = 0,
1000  e_SignatureTSTTime = 1,
1002  e_CurrentTime = 2,
1007  e_VRICreationTime = 3
1008  } TimeType;
1009 
1015  typedef enum _VerifyMode {
1017  e_VerifyModeAcrobat = 1
1018  } VerifyMode;
1019 
1020 
1036  explicit LTVVerifier(const PDFDoc& document, bool is_verify_signature, bool use_expired_tst,
1037  bool ignore_doc_info, TimeType time_type);
1038 
1044  LTVVerifier(const LTVVerifier& other);
1052  LTVVerifier& operator = (const LTVVerifier& other);
1053 
1061  bool operator == (const LTVVerifier& other) const;
1069  bool operator != (const LTVVerifier& other) const;
1070 
1072  ~LTVVerifier();
1073 
1081  bool IsEmpty() const;
1082 
1093  void SetRevocationCallback(RevocationCallback* callback);
1094 
1105  void SetVerifyMode(VerifyMode mode);
1106 
1116  void SetTrustedCertStoreCallback(TrustedCertStoreCallback* callback);
1117 
1129  SignatureVerifyResultArray Verify();
1130 
1142  SignatureVerifyResultArray VerifySignature(const Signature& signature);
1143 
1151  void AddDSS(const SignatureVerifyResult& signature_verify_result);
1152 
1164  void SetCertChainResolverCallback(CertChainResolverCallback* callback);
1165 
1166  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
1167  explicit LTVVerifier(FS_HANDLE handle = NULL);
1168 };
1169 
1171 class SignatureVerifyResult FS_FINAL : public Base{
1172  public:
1178  typedef enum _LTVState {
1185  } LTVState;
1186 
1187 
1202 
1210  bool operator == (const SignatureVerifyResult& other) const;
1218  bool operator != (const SignatureVerifyResult& other) const;
1219 
1227  bool IsEmpty() const;
1228 
1231 
1272 
1279 
1286 
1294 
1295  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
1296  explicit SignatureVerifyResult(FS_HANDLE handle = NULL);
1297 
1298 };
1299 
1300 } // namespace pdf
1301 } // namespace foxit
1302 #endif // FS_LTVVERIFIER_H_
1303 
ResponseInfoLocation response_info_location
Response information (as revocation information) location where certificate response can be found....
Definition: fs_ltvverifier.h:528
This means certificate status is unknown.
Definition: fs_ltvverifier.h:236
bool operator !=(const Response &other) const
Not equal operator.
Definition: fs_ltvverifier.h:108
String cert
A certificate contnet.
Definition: fs_ltvverifier.h:481
CertVerifyResultArray GetCertificateVerifyResults()
Get certificate verify results.
virtual DateTime GetDTSTime(const String &signature_content)=0
A callback function used to get the DTS (document time stamp signature) time from signature content.
bool IsEmpty() const
Check whether current object is empty or not.
TimeRange response_effect_time_range
The time range when the response takes effect.
Definition: fs_ltvverifier.h:490
Revocatoin reason: key compromise.
Definition: fs_ltvverifier.h:250
Response information is found in signature content.
Definition: fs_ltvverifier.h:280
void Set(const StringArray &ocsp_array, const StringArray &crl_array)
Set value.
Definition: fs_ltvverifier.h:703
virtual bool IsCertTrusted(const String &cert)=0
A callback function used to check if input certificate is trusted.
CFX_Object Object
Object type.
Definition: fs_basictypes.h:220
This means certificate is expired.
Definition: fs_ltvverifier.h:234
Revocatoin reason: cessation of operation.
Definition: fs_ltvverifier.h:258
TimeRange(const DateTime &start_time, const DateTime &end_time)
Constructor, with parameters.
Definition: fs_ltvverifier.h:145
bool operator==(const CertIssuerPair &other) const
Equal operator.
Definition: fs_ltvverifier.h:584
String cert
Certificate content.
Definition: fs_ltvverifier.h:613
Location is not set.
Definition: fs_ltvverifier.h:276
Header file for PDF document related definitions and classes.
TimeRange & operator=(const TimeRange &other)
Assign operator.
Definition: fs_ltvverifier.h:173
This means certificate is valid.
Definition: fs_ltvverifier.h:230
virtual String GetOCSPSignature(const String &ocsp_data)=0
A callback function used to get the signature content from a OCSP response.
No response.
Definition: fs_ltvverifier.h:41
Definition: fs_basictypes.h:484
virtual bool IsCertTrustedRoot(const String &cert)=0
A callback function used to check if input certificate is used as a trusted root.
bool operator==(const Response &other) const
Equal operator.
Definition: fs_ltvverifier.h:97
Response information is found in DSS dictionary.
Definition: fs_ltvverifier.h:278
Revocatoin reason: superseded.
Definition: fs_ltvverifier.h:256
CertStatus cert_status
Certificate status. Please refer to values starting from CertVerifyResult::e_CertStatusValid and this...
Definition: fs_ltvverifier.h:498
CertIssuerPair(const String &cert, const String &issuer)
Constructor, with parameters.
Definition: fs_ltvverifier.h:543
Definition: fs_ltvverifier.h:532
virtual String GetTSTSignature(const String &signature_content)=0
A callback function used to get the time stamp token content from a signature content.
SignatureVerifyResultArray GetOCSPSigantureVerifyResults()
Get signature verify results for OCSP signature of each certificate.
Revocatoin reason: remove from CRL.
Definition: fs_ltvverifier.h:262
RevocationReason
Enumeration for revocation reason for a certificate.
Definition: fs_ltvverifier.h:244
Revocatoin reason: CA compromise.
Definition: fs_ltvverifier.h:252
~TimeRange()
Destructor.
Definition: fs_ltvverifier.h:154
CertIssuerPair()
Constructor.
Definition: fs_ltvverifier.h:549
virtual void Release()=0
A callback function used to release current callback object itself.
Response information is got by online request.
Definition: fs_ltvverifier.h:282
This means certificate is revoked.
Definition: fs_ltvverifier.h:232
This means LTV is enabled.
Definition: fs_ltvverifier.h:1182
void Set(const String &cert, bool is_ca, bool is_trusted, const Response &response, const TimeRange &response_effect_time_range, const DateTime &revoke_time, CertStatus cert_status, RevocationReason reason, const DateTime &cert_check_time, bool exist_signature_vri_creation_time, const DateTime &signature_vri_creation_time, bool exist_response_signature_vri_creation_time, const DateTime &response_signature_vri_creation_time, ResponseInfoLocation response_info_location)
Set value.
Definition: fs_ltvverifier.h:457
virtual CertIssuerPair GetOCSPCertAndIssuer(const String &ocsp_data, const StringArray &trust_cert_chain)=0
A callback function used to get the cert-issuer pair of OCSP response.
Revocatoin reason: certificate hold.
Definition: fs_ltvverifier.h:260
Definition: fs_ltvverifier.h:989
CertIssuerPair & operator=(const CertIssuerPair &other)
Assign operator.
Definition: fs_ltvverifier.h:571
bool exist_signature_vri_creation_time
Indicate if creation time of siganture's VRI exists.
Definition: fs_ltvverifier.h:511
Definition: fs_ltvverifier.h:963
Response()
Constructor.
Definition: fs_ltvverifier.h:62
Definition: fs_pdfdoc.h:776
DateTime response_signature_vri_creation_time
Creation time of response signature's VRI. utc_hour_offset and utc_minite_offset of this time object ...
Definition: fs_ltvverifier.h:523
virtual StringArray GetCertChainFromSignature(const String &signature_content)=0
A callback function used to get the cert chain from the signature content.
bool operator==(const SignatureVerifyResult &other) const
Equal operator.
LTVState
Enumeration for LTV state that indicates if a signature is a LTV signature.
Definition: fs_ltvverifier.h:1178
virtual CertVerifyResult VerifyCRL(const CertIssuerPair &cert_issuer_pair, const String &crl_data)=0
A callback function used to verify whether the CRL response matches the certificate and get the verif...
DateTime GetSignatureCheckTime()
Get the time that is actually used to check signature.
bool is_trusted
Indicate if the certificate is truscted by user.
Definition: fs_ltvverifier.h:486
virtual DateTime GetTSTTime(const String &signature_content)=0
A callback function used to get the time stamp token time from signature content.
String GetSignatureName()
Get signature name.
bool is_ca
Indicate if the certificate is a CA certificate.
Definition: fs_ltvverifier.h:484
bool operator==(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are equal.
Definition: fs_basictypes.h:128
Definition: fs_ltvverifier.h:932
ResponseType
Enumeration for response type.
Definition: fs_ltvverifier.h:39
CRL response.
Definition: fs_ltvverifier.h:43
Definition: fs_ltvverifier.h:619
virtual RevocationArrayInfo GetRevocationInfoFromSignatureData(const String &signature_content)=0
A callback function used to get the revocation information (in array type) from a signature.
virtual bool IsOCSPNeedCheck(const String &ocsp_data)=0
A callback function used to get flag which decides if need to check OCSP response.
DateTime signature_vri_creation_time
Creation time of a signature's VRI. utc_hour_offset and utc_minite_offset of this time object are ign...
Definition: fs_ltvverifier.h:516
Definition: fs_ltvverifier.h:32
bool operator==(const RevocationArrayInfo &other) const
Equal operator.
Definition: fs_ltvverifier.h:668
Definition: fs_ltvverifier.h:221
Definition: fs_ltvverifier.h:720
String response_data
Response content.
Definition: fs_ltvverifier.h:133
RevocationArrayInfo()
Constructor.
Definition: fs_ltvverifier.h:633
bool operator !=(const RevocationArrayInfo &other) const
Not equal operator.
Definition: fs_ltvverifier.h:691
virtual DateTime GetOCSPProducedAtTime(const String &ocsp_data)=0
A callback function used to get the produce time of the OCSP response.
~CertVerifyResult()
Destructor.
Definition: fs_ltvverifier.h:347
~Response()
Destructor.
Definition: fs_ltvverifier.h:65
StringArray ocsp_array
An array of OCSP response content.
Definition: fs_ltvverifier.h:709
RevocationArrayInfo(const StringArray &ocsp_array, const StringArray &crl_array)
Constructor, with parameters.
Definition: fs_ltvverifier.h:627
TimeRange()
Constructor.
Definition: fs_ltvverifier.h:151
CertVerifyResult()
Constructor.
Definition: fs_ltvverifier.h:337
Response & operator=(const Response &other)
Assign operator.
Definition: fs_ltvverifier.h:84
Revocatoin reason: ceritifcate has no status.
Definition: fs_ltvverifier.h:246
virtual String GetCRLSignature(const String &crl_data)=0
A callback function used to get the signature content from a CRL response.
CertVerifyResult(const CertVerifyResult &other)
Constructor, with another certificate verify result object.
Definition: fs_ltvverifier.h:354
uint32 GetSignatureState()
Get signature state.
CertStatus
Enumeration for certificate status.
Definition: fs_ltvverifier.h:228
Response response
A response for the certificate.
Definition: fs_ltvverifier.h:488
DateTime revoke_time
Revoked time got from the response.
Definition: fs_ltvverifier.h:492
Definition: fs_ltvverifier.h:137
This means LTV is not enabled.
Definition: fs_ltvverifier.h:1184
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:195
String issuer
An issuer of the certificate.
Definition: fs_ltvverifier.h:615
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:213
Header file for common definitions and classes.
virtual CertVerifyResult VerifyOCSP(const CertIssuerPair &cert_issuer_pair, const String &ocsp_data)=0
A callback function used to verify whether the OCSP response matches the certificate and get the veri...
CertVerifyResult & operator=(const CertVerifyResult &other)
Assign operator.
Definition: fs_ltvverifier.h:378
void Set(const String &cert, const String &issuer)
Set value.
Definition: fs_ltvverifier.h:607
DateTime cert_check_time
The actual time when this certificate is checked validity. utc_hour_offset and utc_minite_offset of t...
Definition: fs_ltvverifier.h:509
~CertIssuerPair()
Destructor.
Definition: fs_ltvverifier.h:552
bool operator !=(const CertIssuerPair &other) const
Not equal operator.
Definition: fs_ltvverifier.h:595
TimeRange(const TimeRange &other)
Constructor, with another time range object.
Definition: fs_ltvverifier.h:161
Definition: fs_basictypes.h:451
Definition: fs_basictypes.h:229
size_t GetSize() const
Get the size of elements in current array.
Revocatoin reason: affiliation changed.
Definition: fs_ltvverifier.h:254
void Set(ResponseType type, const String &response_data)
Set value.
Definition: fs_ltvverifier.h:121
void Set(const DateTime &start_time, const DateTime &end_time)
Set value.
Definition: fs_ltvverifier.h:209
Revocatoin reason: unspecified reason.
Definition: fs_ltvverifier.h:248
RevocationReason reason
Revocation reason of the certificate. Please refer to values starting from CertVerifyResult::e_Reason...
Definition: fs_ltvverifier.h:504
virtual TimeRange GetCertValidTimeRange(const String &cert)=0
A callback function used to get the time range that represents validity period of a certificate.
Response(ResponseType type, const String &response_data)
Constructor, with parameters.
Definition: fs_ltvverifier.h:56
OCSP response.
Definition: fs_ltvverifier.h:45
CertIssuerPair(const CertIssuerPair &other)
Constructor, with another cert-issuer pair object.
Definition: fs_ltvverifier.h:559
RevocationArrayInfo(const RevocationArrayInfo &other)
Constructor, with another revocation array information object.
Definition: fs_ltvverifier.h:643
String GetAt(size_t index) const
Retrieve a copy of the element at position specified by index in current array.
TimeType
Enumeration for time type.
Definition: fs_ltvverifier.h:996
Foxit namespace.
Definition: fs_taggedpdf.h:27
bool operator==(const TimeRange &other) const
Equal operator.
Definition: fs_ltvverifier.h:186
bool operator !=(const TimeRange &other) const
Not equal operator.
Definition: fs_ltvverifier.h:197
LTVVerifier::TimeType GetSignatureCheckTimeType()
Get the type of the time that is actually used to check siganture.
BYTE STRING CLASS.
Definition: fx_string.h:317
String GetSignatureHashValue()
Get signature hash value.
CertVerifyResult(const String &cert, bool is_ca, bool is_trusted, const Response &response, const TimeRange &response_effect_time_range, const DateTime &revoke_time, CertStatus cert_status, RevocationReason reason, const DateTime &cert_check_time, bool exist_signature_vri_creation_time, const DateTime &signature_vri_creation_time, bool exist_response_signature_vri_creation_time, const DateTime &response_signature_vri_creation_time, ResponseInfoLocation response_info_location)
Constructor, with parameters.
Definition: fs_ltvverifier.h:313
Definition: fs_ltvverifier.h:979
ResponseType type
Response type. Please refer to values starting from Response::e_TypeNone and this should be one of th...
Definition: fs_ltvverifier.h:130
DateTime start_time
Start time of current time range.
Definition: fs_ltvverifier.h:215
virtual bool IsIssuerMatchCert(const CertIssuerPair &cert_issuer_pair)=0
A callback function used to check if an issuer matches a certificate.
LTVState GetLTVState()
Get LTV state that indicates if a signature is a LTV signature.
DateTime end_time
End time of current time range.
Definition: fs_ltvverifier.h:217
Definition: fs_ltvverifier.h:535
Response(const Response &other)
Constructor, with another response object.
Definition: fs_ltvverifier.h:72
#define NULL
The null-pointer value.
Definition: fx_system.h:792
Definition: fs_signature.h:99
virtual Response GetResponseOnLineForSingleCert(const CertIssuerPair &cert_issuer_pair)=0
A callback function used to get response online for a certificate.
bool exist_response_signature_vri_creation_time
Indicate if creation time of response signature's VRI exists.
Definition: fs_ltvverifier.h:518
SignatureVerifyResult(const SignatureVerifyResult &other)
Constructor, with another signature veirfy result object.
RevocationArrayInfo & operator=(const RevocationArrayInfo &other)
Assign operator.
Definition: fs_ltvverifier.h:655
bool operator !=(const CertVerifyResult &other) const
Not equal operator.
Definition: fs_ltvverifier.h:424
Definition: fs_ltvverifier.h:1171
StringArray crl_array
An array of CRL response content.
Definition: fs_ltvverifier.h:711
virtual StringArray GetCertificates()=0
Retrieve the array of certificates available for completing the certificate chain.
SignatureVerifyResult GetTSTSignatureVerifyResult()
Get the verify result of time stamp token of this signature.
Revocatoin reason: privilege with drawn.
Definition: fs_ltvverifier.h:264
ResponseInfoLocation
Enumeration for response information location.
Definition: fs_ltvverifier.h:274
bool operator !=(const SignatureVerifyResult &other) const
Not equal operator.
~RevocationArrayInfo()
Destructor.
Definition: fs_ltvverifier.h:636
bool operator==(const CertVerifyResult &other) const
Equal operator.
Definition: fs_ltvverifier.h:403
virtual bool IsCA(const String &cert)=0
A callback function used to judge whether a certificate is a CA certificate.
This means LTV is inactive.
Definition: fs_ltvverifier.h:1180
Revocatoin reason: AA compromise.
Definition: fs_ltvverifier.h:266
SignatureVerifyResult & operator=(const SignatureVerifyResult &other)
Assign operator.