Class BasicOcspResp
- Namespace
- Org.BouncyCastle.Ocsp
- Assembly
- BouncyCastle.Cryptography.dll
public class BasicOcspResp : X509ExtensionBase, IX509Extension
- Inheritance
-
BasicOcspResp
- Implements
- Inherited Members
Remarks
BasicOcspResponse ::= SEQUENCE {
tbsResponseData ResponseData,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL
}
Constructors
BasicOcspResp(BasicOcspResponse)
public BasicOcspResp(BasicOcspResponse resp)
Parameters
respBasicOcspResponse
Properties
ProducedAt
public DateTime ProducedAt { get; }
Property Value
ResponderId
public RespID ResponderId { get; }
Property Value
ResponseExtensions
public X509Extensions ResponseExtensions { get; }
Property Value
Responses
public SingleResp[] Responses { get; }
Property Value
SignatureAlgName
public string SignatureAlgName { get; }
Property Value
SignatureAlgOid
public string SignatureAlgOid { get; }
Property Value
Version
public int Version { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetCertificates()
public IStore<X509Certificate> GetCertificates()
Returns
- IStore<X509Certificate>
The certificates, if any, associated with the response.
Exceptions
- OcspException
In the event of an encoding error.
GetCerts()
public X509Certificate[] GetCerts()
Returns
GetEncoded()
public byte[] GetEncoded()
Returns
- byte[]
The ASN.1 encoded representation of this object.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetSignature()
public byte[] GetSignature()
Returns
- byte[]
GetTbsResponseData()
public byte[] GetTbsResponseData()
Returns
- byte[]
The DER encoding of the tbsResponseData field.
Exceptions
- OcspException
In the event of an encoding error.
GetX509Extensions()
protected override X509Extensions GetX509Extensions()
Returns
Verify(AsymmetricKeyParameter)
Verify the signature against the tbsResponseData object we contain.
public bool Verify(AsymmetricKeyParameter publicKey)
Parameters
publicKeyAsymmetricKeyParameter