Table of Contents

Class CertificateID

Namespace
Org.BouncyCastle.Ocsp
Assembly
BouncyCastle.Cryptography.dll
public class CertificateID : IEquatable<CertificateID>
Inheritance
CertificateID
Implements
Inherited Members

Constructors

CertificateID(CertID)

public CertificateID(CertID id)

Parameters

id CertID

CertificateID(AlgorithmIdentifier, X509Certificate, BigInteger)

public CertificateID(AlgorithmIdentifier digestAlgorithm, X509Certificate issuerCert, BigInteger serialNumber)

Parameters

digestAlgorithm AlgorithmIdentifier
issuerCert X509Certificate
serialNumber BigInteger

CertificateID(IDigestFactory, X509Certificate, BigInteger)

public CertificateID(IDigestFactory digestFactory, X509Certificate issuerCert, BigInteger serialNumber)

Parameters

digestFactory IDigestFactory
issuerCert X509Certificate
serialNumber BigInteger

CertificateID(string, X509Certificate, BigInteger)

[Obsolete("Will be removed")]
public CertificateID(string hashAlgorithm, X509Certificate issuerCert, BigInteger serialNumber)

Parameters

hashAlgorithm string
issuerCert X509Certificate
serialNumber BigInteger

Fields

DigestSha1

public static readonly AlgorithmIdentifier DigestSha1

Field Value

AlgorithmIdentifier

HashSha1

[Obsolete("Use 'OiwObjectIdentifiers.IdSha1.Id' instead")]
public const string HashSha1 = "1.3.14.3.2.26"

Field Value

string

Properties

HashAlgOid

public string HashAlgOid { get; }

Property Value

string

SerialNumber

public BigInteger SerialNumber { get; }

Property Value

BigInteger

Methods

DeriveCertificateID(CertificateID, BigInteger)

public static CertificateID DeriveCertificateID(CertificateID original, BigInteger newSerialNumber)

Parameters

original CertificateID
newSerialNumber BigInteger

Returns

CertificateID

Equals(CertificateID)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CertificateID other)

Parameters

other CertificateID

An object to compare with this object.

Returns

bool

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

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.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetIssuerKeyHash()

public byte[] GetIssuerKeyHash()

Returns

byte[]

GetIssuerNameHash()

public byte[] GetIssuerNameHash()

Returns

byte[]

MatchesIssuer(IDigestFactory, X509Certificate)

public bool MatchesIssuer(IDigestFactory digestFactory, X509Certificate issuerCert)

Parameters

digestFactory IDigestFactory
issuerCert X509Certificate

Returns

bool

MatchesIssuer(X509Certificate)

public bool MatchesIssuer(X509Certificate issuerCert)

Parameters

issuerCert X509Certificate

Returns

bool

ToAsn1Object()

public CertID ToAsn1Object()

Returns

CertID