OCSPRequest Class

Represents an OCSP Request object. This object is used to create and submit a request to an OCSP Responder.

Definition

Namespace: SysadminsLV.PKI.OcspClient
Assembly: SysadminsLV.PKI.OcspClient (in SysadminsLV.PKI.OcspClient.dll) Version: 4.0.1
C#
public class OCSPRequest
Inheritance
Object    OCSPRequest

Constructors

OCSPRequest(OCSPSingleRequestCollection) Initializes a new instance of OCSPRequest from an array of single request items.
OCSPRequest(X509Certificate2) Initializes a new instance of the OCSPRequest class using the X509Certificate2 object.
OCSPRequest(X509Certificate2Collection) Initializes a new instance of the OCSPRequest class using the X509Certificate2Collection object and Uri object.
OCSPRequest(X509Certificate2Collection, X509Certificate2) Initializes a new instance of OCSPRequest using issuer certificate, an array of certificates to verify and indication whether to include ServiceLocator extension to the request.

Properties

AcceptedSignatureAlgorithms Gets an array of supported signature algorithms that OCSP server shall use to sign response. Default algorithm is sha1RSA.
Extensions Gets optional OCSP Request extensions. This may include Nonce and/or Service Locator extensions.
Nonce Indicates whether the client chose to add Nonce extension.
NonceValue As a Nonce extension value, a Ticks property value of DateTime class is used.
Proxy Gets or sets web proxy information that will be used to connect OCSP server.
RawData Gets the raw data of a OCSP request. This data is sent to OCSP responder.
RequestList Gets certificate identification object collection. This object is equivalent to singleRequest structure in ASN.1 module.
SignerCertificate Gets the certificate used to sign this request. If the request is not signed, this property is null.
URL Gets or sets the URL of the OCSP responder service. URL can be retrieved from certificate's AIA extension.
Version Gets OCSP Request version. Currently only version 1 is defined.

Methods

Encode Encodes OCSP request based on a current information and populates RawData property. After encoding, the object cannot be modified
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
SendRequest Sends OCSP request (encoded raw data) to a OCSP responder specified in URL.
SendRequest(String) Sends OCSP request (encoded raw data) to a OCSP responder specified in URL property by using specific network method.
SetCredential Gets or sets the network credentials that are sent to a OCSP server and used to authenticate the request.
SetProxy Gets or sets the proxy used by OCSP request.
Obsolete.
SignRequest(X509Certificate2, Boolean) Digitally signs the OCSP request. The method uses "sha1RSA" signature algorithm by default.
SignRequest(X509Certificate2, Boolean, Oid) Digitally signs the OCSP request.
ToString
(Inherited from Object)

See Also