OriginatorID
using Org.BouncyCastle.Utilities;
using Org.BouncyCastle.X509.Store;
using System;
namespace Org.BouncyCastle.Cms
{
public class OriginatorID : X509CertStoreSelector, IEquatable<OriginatorID>
{
public virtual bool Equals(OriginatorID other)
{
if (other != null) {
if (other != this) {
if (MatchesSubjectKeyIdentifier(other) && MatchesSerialNumber(other))
return MatchesIssuer(other);
return false;
}
return true;
}
return false;
}
public override bool Equals(object obj)
{
return Equals(obj as OriginatorID);
}
public override int GetHashCode()
{
return GetHashCodeOfSubjectKeyIdentifier() ^ Objects.GetHashCode(base.SerialNumber) ^ Objects.GetHashCode(base.Issuer);
}
}
}