CertificateSignedRequest.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using EVCB_OCPP.Packet20.DataTypes.EnumTypes;
  2. using Newtonsoft.Json;
  3. using Newtonsoft.Json.Converters;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace EVCB_OCPP.Packet20.Messages
  11. {
  12. public class CertificateSignedRequest
  13. {
  14. /// <summary>
  15. /// The signed X.509 certificate, first DER encoded
  16. /// into binary, and then Base64 encoded.This can also
  17. /// contain the necessary sub CA certificates.In that case,
  18. /// the order should follow the certificate chain, starting from
  19. /// the leaf certificate.
  20. /// </summary>
  21. [Required]
  22. public List<string> Certificate { set; get; }
  23. /// <summary>
  24. /// Indicates the type of the signed certificate that
  25. ///is returned.When omitted the certificate is used for both
  26. ///the 15118 connection(if implemented) and the Charging
  27. ///Station to CSMS connection.This field is required when a
  28. ///typeOfCertificate was included in the
  29. ///SignCertificateRequest that requested this certificate to
  30. ///be signed AND both the 15118 connection and the
  31. ///Charging Station connection are implemented.
  32. /// </summary>
  33. [JsonConverter(typeof(StringEnumConverter))]
  34. public CertificateSigningUseEnumType CertificateType { set; get; }
  35. }
  36. }