Expand description
HTTP transport of the PKI messages.
ETSI TS 102 941 V2.2.1 Annex C: requests are HTTP POSTs to the access point
of the EA / AA (application/x-its-request, response
application/x-its-response). Annexes D and E: CTL, CRL and ECTL are
fetched with HTTP GET from the DC / CPOC. The transport is a trait so that
tests (and other carriers) can replace it.
Structs§
- Http
Transport ureqtransport with a timeout.- PkiTransport
Error - The PKI could not be reached or answered with an HTTP error.
- Retry
- A
RetryPolicywith the clock and the wait it runs on. - Retry
Policy - Repetition of a request whose response is not received (ETSI TS 103 601
V2.1.1 clauses 5.1.4 and 5.2.4): the same message is sent again
th1seconds after the previous transmission (timer T1 / T4), at mostn1times in all (N1 / N2), and not afterth2seconds from the first one (T2 / T5, TH2 > TH1 x N1; NOTE 1 recommends 60 minutes).
Traits§
- PkiTransport
- Carrier of the PKI messages.
Functions§
- post_
with_ retry - POST
body(always the same message) until a response is received, followingretry(one transmission when None). The error when no response came: the caller then drops the request and its session key (clause 5.1.2, case 2).
Type Aliases§
- PkiSleep
- Wait (seconds) between two transmissions of a request.