GetCertificateStatusResponse.cs 1015 B

1234567891011121314151617181920212223242526272829303132
  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 GetCertificateStatusResponse
  13. {
  14. /// <summary>
  15. /// This indicates whether the charging station
  16. ///was able to retrieve the OCSP certificate status
  17. /// </summary>
  18. [Required]
  19. [JsonConverter(typeof(StringEnumConverter))]
  20. public GetCertificateStatusEnumType Status { set; get; }
  21. /// <summary>
  22. /// OCSPResponse class as defined in IETF RFC
  23. ///6960. DER encoded(as defined in IETF RFC 6960), and
  24. ///then base64 encoded.MAY only be omitted when status
  25. ///is not Accepted.
  26. /// </summary>
  27. [StringLength(5500, MinimumLength = 0)]
  28. public string OcspResult { set; get; }
  29. }
  30. }