DigitalSignatureData.cs 956 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using ComPDFKit.DigitalSign;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ComPDFKit.Controls.PDFControl
  8. {
  9. public enum CreateCertificationMode
  10. {
  11. AddExistedCertification,
  12. AddCustomCertification,
  13. SaveCertificate
  14. }
  15. public enum AlgorithmType
  16. {
  17. RSA1024bit,
  18. RSA2048bit
  19. }
  20. public class CertificateInfo
  21. {
  22. public string GrantorName = string.Empty;
  23. public string Organization = string.Empty;
  24. public string OrganizationUnit = string.Empty;
  25. public string Email = string.Empty;
  26. public string Area = string.Empty;
  27. public string Password = string.Empty;
  28. public AlgorithmType AlgorithmType;
  29. public CPDFCertUsage PurposeType;
  30. }
  31. public class CertificateAccess
  32. {
  33. public string filePath;
  34. public string password;
  35. }
  36. }