Org.BouncyCastle.Ocsp.CertificateID.Equals C# (CSharp) Метод

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool
		public override bool Equals(
			object obj)
		{
			if (obj == this)
				return true;

			CertificateID other = obj as CertificateID;

			if (other == null)
				return false;

			return id.ToAsn1Object().Equals(other.id.ToAsn1Object());
		}

Usage Example

Пример #1
0
 /**
 * Checks if OCSP revocation refers to the document signing certificate.
 * @return true if it checks false otherwise
 * @since    2.1.6
 */
 public bool IsRevocationValid() {
     if (basicResp == null)
         return false;
     if (signCerts.Count < 2)
         return false;
     try {
         X509Certificate[] cs = SignCertificateChain;
         SingleResp sr = basicResp.Responses[0];
         CertificateID cid = sr.GetCertID();
         X509Certificate sigcer = SigningCertificate;
         X509Certificate isscer = cs[1];
         CertificateID tis = new CertificateID(CertificateID.HashSha1, isscer, sigcer.SerialNumber);
         return tis.Equals(cid);
     }
     catch {
     }
     return false;
 }
All Usage Examples Of Org.BouncyCastle.Ocsp.CertificateID::Equals