TPDFlibNativeOCSPHTTPMethod
Data types, security and signatures
Description
TPDFlibNativeOCSPHTTPMethod selects the transport used for OCSP requests issued by native revocation verification.
It is the type of the NativeOCSPHTTPMethod property on TPDFlibSignatureVerifier and applies to native signer-chain, document timestamp and signature timestamp retrieval.
Syntax
Delphi
TPDFlibNativeOCSPHTTPMethod = (nohmPreferPOST, nohmPreferGET, nohmPOSTOnly, nohmGETOnly);Values
| nohmPreferPOST | Sends POST first and retries with GET on the same URL when the responder rejects the method with 405 or 501 |
|---|---|
| nohmPreferGET | Sends GET first when a GET URL can be built and stays within 255 UTF-8 characters, then falls back to POST when the responder rejects the method or a required nonce was not echoed |
| nohmPOSTOnly | Sends POST only; a rejected method is not retried with GET |
| nohmGETOnly | Sends GET only; no POST fallback is attempted, so an unusable GET URL or a rejected GET ends that request |
Remarks
The verifier initialises the mode to nohmPreferPOST.
The property setter range-checks the value and raises an argument exception for an out-of-range ordinal.
GET requests accept application/ocsp-response and POST requests send application/ocsp-request, as required by the OCSP transport.
The Windows chain route keeps its existing transport policy; this type governs the native backend.
See also
TPDFlibSignatureVerifier, NativeOCSPHTTPMethod, NativeOCSPRevocation, NativeOCSPNonce