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
idCertID
CertificateID(AlgorithmIdentifier, X509Certificate, BigInteger)
public CertificateID(AlgorithmIdentifier digestAlgorithm, X509Certificate issuerCert, BigInteger serialNumber)
Parameters
digestAlgorithmAlgorithmIdentifierissuerCertX509CertificateserialNumberBigInteger
CertificateID(IDigestFactory, X509Certificate, BigInteger)
public CertificateID(IDigestFactory digestFactory, X509Certificate issuerCert, BigInteger serialNumber)
Parameters
digestFactoryIDigestFactoryissuerCertX509CertificateserialNumberBigInteger
CertificateID(string, X509Certificate, BigInteger)
[Obsolete("Will be removed")]
public CertificateID(string hashAlgorithm, X509Certificate issuerCert, BigInteger serialNumber)
Parameters
hashAlgorithmstringissuerCertX509CertificateserialNumberBigInteger
Fields
DigestSha1
public static readonly AlgorithmIdentifier DigestSha1
Field Value
HashSha1
[Obsolete("Use 'OiwObjectIdentifiers.IdSha1.Id' instead")]
public const string HashSha1 = "1.3.14.3.2.26"
Field Value
Properties
HashAlgOid
public string HashAlgOid { get; }
Property Value
SerialNumber
public BigInteger SerialNumber { get; }
Property Value
Methods
DeriveCertificateID(CertificateID, BigInteger)
public static CertificateID DeriveCertificateID(CertificateID original, BigInteger newSerialNumber)
Parameters
originalCertificateIDnewSerialNumberBigInteger
Returns
Equals(CertificateID)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CertificateID other)
Parameters
otherCertificateIDAn object to compare with this object.
Returns
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
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
digestFactoryIDigestFactoryissuerCertX509Certificate
Returns
MatchesIssuer(X509Certificate)
public bool MatchesIssuer(X509Certificate issuerCert)
Parameters
issuerCertX509Certificate
Returns
ToAsn1Object()
public CertID ToAsn1Object()