Table of Contents

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

resp BasicOcspResponse

Properties

ProducedAt

public DateTime ProducedAt { get; }

Property Value

DateTime

ResponderId

public RespID ResponderId { get; }

Property Value

RespID

ResponseExtensions

public X509Extensions ResponseExtensions { get; }

Property Value

X509Extensions

Responses

public SingleResp[] Responses { get; }

Property Value

SingleResp[]

SignatureAlgName

public string SignatureAlgName { get; }

Property Value

string

SignatureAlgOid

public string SignatureAlgOid { get; }

Property Value

string

Version

public int Version { get; }

Property Value

int

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

X509Certificate[]

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

X509Extensions

Verify(AsymmetricKeyParameter)

Verify the signature against the tbsResponseData object we contain.

public bool Verify(AsymmetricKeyParameter publicKey)

Parameters

publicKey AsymmetricKeyParameter

Returns

bool